precision
asked on
Simple PHP Question
Here is what I have:
an include directory with the following:
style.php
header.php
footer.php
inside index.php source is the following:
<?php include("style.php"); ?>
<?php include("header.php"); ?>
<?php include("footer.php"); ?>
Only one that works is header.php, style.php and footer.php are uploaded. Error I get is:
Warning: main(footer.php): failed to open stream: No such file or directory in /xxx/about_more.php on line 81
Warning: main(footer.php): failed to open stream: No such file or directory in /xxx/about_more.php on line 81
Warning: main(): Failed opening 'footer.php' for inclusion (include_path='.:/usr/loca l/lib/php' ) in /xxx/about_more.php on line 81
an include directory with the following:
style.php
header.php
footer.php
inside index.php source is the following:
<?php include("style.php"); ?>
<?php include("header.php"); ?>
<?php include("footer.php"); ?>
Only one that works is header.php, style.php and footer.php are uploaded. Error I get is:
Warning: main(footer.php): failed to open stream: No such file or directory in /xxx/about_more.php on line 81
Warning: main(footer.php): failed to open stream: No such file or directory in /xxx/about_more.php on line 81
Warning: main(): Failed opening 'footer.php' for inclusion (include_path='.:/usr/loca
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Bingo! Don't ask me why, 1 worked and the 2 others did not as I had originally. When I did what you recommended they all work with the full path. Thanks!
glad to help ;)
That problem got me a bunch of times when I was starting out with PHP...and a couple times since ;)
That problem got me a bunch of times when I was starting out with PHP...and a couple times since ;)
ASKER