我的网站根目录下面有个uc_client/client.php的文件,
我在/system/application/controllers的一个文件里面如何require client.php。为什么require("/uc_client/client.php");
显示如下错误
A PHP Error was encounteredSeverity: WarningMessage: require() [function.require]: open_basedir restriction in effect. File(/uc_client/client.php) is not within the allowed path(s): (/data/home:/var/www/htdocs:/var/www/disablesite:/data/home/tmp)Filename: controllers/user.phpLine Number: 16
我在/system/application/controllers的一个文件里面如何require client.php。为什么require("/uc_client/client.php");
显示如下错误
A PHP Error was encounteredSeverity: WarningMessage: require() [function.require]: open_basedir restriction in effect. File(/uc_client/client.php) is not within the allowed path(s): (/data/home:/var/www/htdocs:/var/www/disablesite:/data/home/tmp)Filename: controllers/user.phpLine Number: 16
require不是相对网站根本录,网站要目录是针对网站发布出去的概念。require根本不知道根目录是什么,那包含文件依据引用require指令的文件所在的目录的相对目录及php环境变量include_path的值来定。
Access denied