TheShaner
08-09-2007, 04:17 PM
I have a page called test.php in public_html that has the 2nd line like so:
require_once 'myscript.php';
myscript.php is in a directory called include that is in the public_html directory.
I receive this error when I run test.php:
Warning: require_once(myscript.php) [function.require-once]: failed to open stream: No such file or directory in /home/user/public_html/test.php on line 2
Fatal error: require_once() [function.require]: Failed opening required 'myscript.php' (include_path='.:/home/user/public_html/include:./include') in /home/user/public_html/test.php on line 2
How could I receive this error when the include_path points to the location of myscript.php since the last two of the three areas specified in the include_path point to the same location of my include file?????
Thanks for any help.
-Shane
require_once 'myscript.php';
myscript.php is in a directory called include that is in the public_html directory.
I receive this error when I run test.php:
Warning: require_once(myscript.php) [function.require-once]: failed to open stream: No such file or directory in /home/user/public_html/test.php on line 2
Fatal error: require_once() [function.require]: Failed opening required 'myscript.php' (include_path='.:/home/user/public_html/include:./include') in /home/user/public_html/test.php on line 2
How could I receive this error when the include_path points to the location of myscript.php since the last two of the three areas specified in the include_path point to the same location of my include file?????
Thanks for any help.
-Shane