0
當我嘗試包括像這樣的文件:使用「../」導致的open_basedir限制錯誤
include ("../folder/file.php");
我得到一個錯誤:
Warning: include(): open_basedir restriction in effect. File(../folder/file.php) is not within the allowed path(s)
但是,當我嘗試包括相同像這樣的文件:
include ($_SERVER['DOCUMENT_ROOT']."/folder/file.php");
它工作正常。 我明白任何想法,使其工作使用第一種方式:)
問候,ExChill