Jump to content

[SOLVED] Stuck with directory path


pcw

Recommended Posts

Hi, I am trying to include a file into my script.

 

The license.php is stored in sitebuilder/data/

 

and the header and footer file i need to include in license.php are located in

sitebuilder/templates/admin/

 

How do I get the file to follow the right include path? I keep getting

 

Warning: include(templates/admin/header.htm) [function.include]: failed to open stream: No such file or directory in /home/moveitho/public_html/sitebuilder/data/license.php on line 1

 

Warning: include(templates/admin/header.htm) [function.include]: failed to open stream: No such file or directory in /home/moveitho/public_html/sitebuilder/data/license.php on line 1

 

Warning: include() [function.include]: Failed opening 'templates/admin/header.htm' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/sitebuilder/data/license.php on line 1

 

and cant figure out whats wrong :(

 

Link to comment
https://forums.phpfreaks.com/topic/148839-solved-stuck-with-directory-path/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.