【发布时间】:2018-11-10 21:13:10
【问题描述】:
我正在使用file_get_contents() 函数从 Google 获取两个网页。我的代码是:
var_dump(htmlspecialchars(html_entity_decode(file_get_contents('https://www.google.com/search?q=moscow+russia&start=30'))));
var_dump(htmlspecialchars(html_entity_decode(file_get_contents('https://www.google.com/search?q=ice&start=00'))));
file_get_contents 函数适用于第一个 URL,但不适用于第二个 URL。有什么问题?
【问题讨论】:
-
my answer 好吗?
标签: php file-get-contents