This is the open_basedir restriction of my site:
php_admin_value open_basedir /tmp/:/home/site/
All my PHP files are under /home/site/htdocs. However, I get lots of errors
like:
Warning: open_basedir restriction in effect. File is in wrong directory in
/home/site/.......
I'm 100% sure it's related to open_basedir because disabling it solves the
problem. The funniest thing is:
# Excerpt from /home/site/htdocs/lib/inc/foo.php
include_once('file.inc.php'); # Error unless no open_basedir
include_once('/home/site/htdocs/lib/inc/file.inc.php'); # Works fine
I'm including exactly the same file in the same location so paths are
correct! I added "." to open_basedir but didn't work.
Why???
Thank you in advance,
--
-- Álvaro G. Vicario - Burgos, Spain
-- Questions sent to my mailbox will be billed ;-)
--