require_once( "../lib/utility.php" ) <- errors
Posted: Sat Jul 07, 2007 1:59 pm
Hello,
I am trying to require a file in a script that is located one directory back and in a separate folder, ie. "../lib/utility.php"
Each time I try to execute the php script w/ my browser, I am prompted w/ an error:
Warning: require_once(../lib/utility.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\ah\data\registeration.php on line 8
Fatal error: require_once() [function.require]: Failed opening required '../lib/utility.php' (include_path='.;..;c:\wamp\php\include;c:\wamp\www\ah\lib') in C:\wamp\www\ah\data\registeration.php on line 8
The script I am trying to include is located int "C:\wamp\www\ah\lib"
I am running php on windows. I believe the include_path is set correctly. Does php not recognize the ".." notation?
I've hacked the script to ini_set() the exact location of the utility.php and require it directly, so I know its able to find the file.
Any help would be appreciated.
Thanks!
I am trying to require a file in a script that is located one directory back and in a separate folder, ie. "../lib/utility.php"
Each time I try to execute the php script w/ my browser, I am prompted w/ an error:
Warning: require_once(../lib/utility.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\ah\data\registeration.php on line 8
Fatal error: require_once() [function.require]: Failed opening required '../lib/utility.php' (include_path='.;..;c:\wamp\php\include;c:\wamp\www\ah\lib') in C:\wamp\www\ah\data\registeration.php on line 8
The script I am trying to include is located int "C:\wamp\www\ah\lib"
I am running php on windows. I believe the include_path is set correctly. Does php not recognize the ".." notation?
I've hacked the script to ini_set() the exact location of the utility.php and require it directly, so I know its able to find the file.
Any help would be appreciated.
Thanks!