PHP inclde_path - I'm stymied
George Goodman
georgegoodman at gmail.com
Sat Aug 12 21:36:47 PDT 2006
Please help...
I have installed PHP on OBSD 3.9 and all is working okay, except
includes from the include_path
If I incluclude a file in the same directory as the running script no problem.
If I use .. or ../.. etc in my include_path, no problem, PHP finds the
included file up the tree.
BUT, if I use a fully qualified path name in the include_path no luck...
I tried setting up a directory at /var/www/php and using that for includes - no.
I tried /usr/local/lib/php/includes - no.
I also tried many other places, within the /var/www/ directory and outside it.
funny thing is, the warning I get even says PHP is looking in the
right place, but still it does not work:
Warning: main(test.php) [function.main]: failed to open stream: No
such file or directory in /htdocs/tests/index.php on line 5
Ok, fine it is not there...
Warning: main() [function.include]: Failed opening 'test.php' for
inclusion (include_path='/usr/local/lib/php/includes/') in
/htdocs/tests/index.php on line 5
now there is the problem, the test.php file IS in the correct
directory /usr/local/lib/php/includes/ and I have tried with and
without the trailing slash.
Can anyone tell me wassup?
Thanks,
GG
More information about the Openbsd-newbies
mailing list