namsu
10-11-2004, 11:31 AM
Hello
I got my hosting, it seems to be working great except for one problem.
I use php to include a template. The location of it is in public_html/inc
Public_html is my home folder where I have my index file and so forth.
In files from this folder everything is included ok.
However my stories are in the Public_html/news folder. Files from
there come up with the following error:
Warning: main(inc/templatehead.htm): failed to open stream: No such file or directory in /usr/home/namsu/public_html/news/siteguide.php on line 7
Warning: main(): Failed opening 'inc/templatehead.htm' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/home/namsu/public_html/news/siteguide.php on line 7
The code I use is:
<?php include("inc/templatehead.htm"); ?>
I've also tried:
<?php include("/inc/templatehead.htm"); ?>
<?php include("./inc/templatehead.htm"); ?>
Nothing works. It fails to find that directory(.:/usr/lib/php), and I can't see it from ftp either. Any suggestions?
I got my hosting, it seems to be working great except for one problem.
I use php to include a template. The location of it is in public_html/inc
Public_html is my home folder where I have my index file and so forth.
In files from this folder everything is included ok.
However my stories are in the Public_html/news folder. Files from
there come up with the following error:
Warning: main(inc/templatehead.htm): failed to open stream: No such file or directory in /usr/home/namsu/public_html/news/siteguide.php on line 7
Warning: main(): Failed opening 'inc/templatehead.htm' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/home/namsu/public_html/news/siteguide.php on line 7
The code I use is:
<?php include("inc/templatehead.htm"); ?>
I've also tried:
<?php include("/inc/templatehead.htm"); ?>
<?php include("./inc/templatehead.htm"); ?>
Nothing works. It fails to find that directory(.:/usr/lib/php), and I can't see it from ftp either. Any suggestions?