urgent "#include"

Results 1 to 4 of 4

Thread: urgent "#include"

  1. #1
    Join Date
    Dec 1969

    Default urgent "#include"

    hye ! <BR>how can i replace this incorrect code: <BR>"&#060;!-- #include virtual="&#060;%= RecordSet("pathfile") %&#062;" --&#062;". <BR>RecordSet("pathfile")=index.html. <BR>i try binarywrite but images are not loaded. <BR>thanks in advance.

  2. #2
    Join Date
    Dec 1969

    Default Nope...Shouldn't do this...

    ...read the FAQ&#039;s on this web site for reasons why.

  3. #3
    Join Date
    Dec 1969
    Los Angeles, CA

    Default Leave "Shouldn't"...CANT. <eop>


  4. #4
    peterjl@austec.net.au Guest

    Default RE: urgent

    The reason you can&#039;t do this is that the webserver processes the include files before it executes the script. So you can&#039;t use a variable for the filename.<BR><BR>If you want to insert the contents of another file depending on the value of a database field, you would need to use the filesystemobject to read the file. If the file you are including is to be executed, then you will have to find another way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts