what's this error?

Discussion in 'PHP' started by devin, Feb 22, 2006.

  1. #1
    i inserted this tag

    <!--#include virtual="lw_code.php"-->

    (i have no idea what it means, the instructions says to add this)

    and i get teh error message at the top of my page:
    the php was given to me too.
     
    devin, Feb 22, 2006 IP
  2. TMan

    TMan Peon

    Messages:
    126
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, if that line is in your HTML, it should be ignored as it's between comment tags. If it's in PHP the html comment tags should probably be removed...
     
    TMan, Feb 22, 2006 IP
  3. cybercool

    cybercool Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    where is it being called from ? withing a html file or a php file ?
     
    cybercool, Feb 22, 2006 IP
  4. devin

    devin Guest

    Messages:
    4,461
    Likes Received:
    449
    Best Answers:
    0
    Trophy Points:
    0
    #4
    it's being called from within a html file.
     
    devin, Feb 22, 2006 IP
  5. cybercool

    cybercool Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you need to have the absolute FULL pathname to the file and not the relative one..


    eg
    <!--#include virtual="/root/subdirectory/phpfile.phpl" -->
     
    cybercool, Feb 23, 2006 IP