Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess 删除开放的basedir限制_.htaccess_Open Basedir - Fatal编程技术网

.htaccess 删除开放的basedir限制

.htaccess 删除开放的basedir限制,.htaccess,open-basedir,.htaccess,Open Basedir,我正在运行脚本,出现以下错误: WARNING: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/share/php/Am/View/Helper/HeadScript.php) is not within the allowed path(s): (/home/1205915141/members-net/:/tmp:/usr/share/pear/) in line 198

我正在运行脚本,出现以下错误:

WARNING: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/share/php/Am/View/Helper/HeadScript.php) is not within the allowed path(s): (/home/1205915141/members-net/:/tmp:/usr/share/pear/) in line 198 of file /home/1205915141/members-net/public_html/library/Zend/Loader.php
我要求我的主人取消限制,但他们说,出于安全原因,他们不会取消。因此,我决定自己动手,用htaccess覆盖php.ini,如下所示:

php_value open_basedir  /usr/share/php/ 
但它不起作用。我不确定到底是什么问题,不管是语法还是路径。你能帮我一下吗


谢谢。

您使用什么PHP版本-可能

对于PHP<5.3,该值是PHP_INI_系统,这意味着只能从PHP.INI或httpd.conf中设置。从PHP5.3开始,它的值是PHP_INI_ALL,因此您可以在htaccess文件中设置它