【发布时间】:2016-12-22 21:52:42
【问题描述】:
抱歉无法获取此url的html源代码:http://www.picbear.com/tag/ok;
我总是得到一个带有 ["Hello Stranger"] 消息的空白页。
如果我使用 chrome 的工具没问题。
我一直使用file_get_contents 或php_simple_html DOM 解析器没有任何问题。
由于我的供应商限制,我无法访问 php.ini,但应该没问题。
帮助任何人?谢谢。
$url = "http://www.picbear.com/tag/ok";
$html = file_get_contents($url);
echo $html;
【问题讨论】:
-
为我工作。你一定是做错了什么。
标签: php html curl file-get-contents source-code-protection