Possible Duplicate:
open_basedir restriction in effect. File(/) is not within the allowed path(s):
Hy I have a script called dataface, on a shared host it outputs all the time this w开发者_Go百科arning
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect.
File(/usr/local/lib/php/Dataface/FormTool/text.php) is not within the allowed path(s):
(/home/:/usr/lib/php:/tmp) in /home/a4385243/public_html/dataface/Dataface/FormTool.php on line 654
How can i fix this ?
open_basedir
is a setting limiting access to certain directories for PHP scripts.
You are not including the line from your script that throws the error, but if I'd had to guess, I'd say your script is including Dataface/FormTool/text.php
somehow wrongly (maybe it would have to be ../Dataface....
or something).
PHP then starts searching for the file in the include_path
and gets stopped by the open_basedir
restriction.
精彩评论