2010-03-15 75 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限制停止。