Home >Backend Development >PHP Tutorial >用CURL无法获取网易首页,求高手解答。多谢

用CURL无法获取网易首页,求高手解答。多谢

WBOY
WBOYOriginal
2016-06-13 10:07:05864browse

用CURL无法获取网易首页,求高手解答。。。谢谢
代码如下:

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$ch = curl_init("http://www.163.com/");$fp = fopen("example_homepage.txt", "w");curl_setopt($ch, CURLOPT_FILE, $fp);curl_setopt($ch, CURLOPT_HEADER, 0);curl_exec($ch);curl_close($ch);fclose($fp);


------解决方案--------------------
探讨

引用:
一般大的网站都必须各种模拟...


不明白什么叫各种模拟!! 学习学习。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn