How to include PHP header in subfolder??

Discussion in 'Hardware' started by siren11, Jul 27, 2010.

  1. #1
    I use
    <?php include("header.html"); ?>
    Code (markup):
    and it gives me this error
    Warning: include(header.html) [function.include]: failed to open stream: No such file or directory in /home/accountname/public_html/bones/index.php on line 1
    
    Warning: include(header.html) [function.include]: failed to open stream: No such file or directory in /home/accountname/public_html/bones/index.php on line 1
    
    Warning: include() [function.include]: Failed opening 'header.html' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/bones/index.php on line 1
    Code (markup):
    HELP PLEASE. Thanks
     
    Last edited: Jul 27, 2010
    siren11, Jul 27, 2010 IP
  2. GeekDrop

    GeekDrop Well-Known Member

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    111
    #2
    <?php include("/subfoldername/header.html"); ?>
     
    GeekDrop, Sep 12, 2010 IP