2010-03-15 114 views
0

可能重复:
open_basedir restriction in effect. File(/) is not within the allowed path(s):如何修复open_basedir限制错误?

海兰我有一个名为dataface脚本,共享主机上它输出所有的时间这样的警告

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 

如何解决这个 ?

回答

0

open_basedir是限制访问PHP脚本的某些目录的设置。

你不会在脚本中包含引发错误的行,但如果我不得不猜测,我会说你的脚本包含Dataface/FormTool/text.php不知何故(也许它必须是../Dataface....或其他)。

然后PHP开始搜索include_path中的文件,并被open_basedir限制停止。