我已经通过运行phpinfo()
确认全局和本地设置为"On"
allow_url_fopen On On
allow_url_include On On
但是当我做include('http://www.example.com')
时;我得到一个空白页,没有错误,apache日志中没有错误,但是脚本执行停止在失败的包含。
如果我这样做
$out=file_get_contents('http://www.example.com');
echo $out;
。
根据我的主机,答案是suhosin补丁阻止url包含。