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

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

WBOY
Release: 2016-06-13 10:07:05
Original
861 people have browsed it

用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);
Copy after login


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

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


不明白什么叫各种模拟!! 学习学习。
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template