1
我收到错误open_basedir的限制的.htaccess
Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (VIRTUAL_DOCUMENT_ROOT:/tmp/) in /www/elitno.net/s/p/anger2/home/site/classWebPage.php on line 83
我的phpinfo文件是在这里 - >http://spaceranger2.elitno.net/phpinfo.php
其中错误是发生该生产线是在这里:
function openLink(){
$this->fp = fopen($this->URL, "rb");
array_shift($http_response_header);
$this->headers = $http_response_header;
}
我只能访问.htaccess,但不能访问我的php.ini文件;我试过用这个
open_basedir = "VIRTUAL_DOCUMENT_ROOT:/tmp/:/www/elitno.net/s/p/ranger2/home/site/"
但这样会产生500 internal error
的,有什么建议吗?
你能分享的'$这个 - 值> URL'当错误出现?最有用的值将是'var_dump($ this-> URL)'的输出。 你也应该检查一下http://stackoverflow.com/a/2916429/964616。 –
结果是字符串(1)“/” – user1905494
解决方案是否适合您?如果是,请考虑将其标记为答案并且upvote。 –