您好,欢迎访问一九零五行业门户网

如何用PHP抓取网站HTML

怎么用php抓取网站html
连接地址
http://detail.tmall.com/item.htm?spm=a230r.1.0.0.mli5e4&id=40364502055&ad_id=&am_id=&cm_id=140105335569ed55e27b&pm_id=&abbucket=12
抓取上面连接的 html 用file_get_contents() 测试没成功 怎么回事啊?
------解决思路----------------------
file_get_contents() 成功了呀
------解决思路----------------------

其中curl_setopt($ch, curlopt_followlocation,true);设置比较重要,可以用来跟随天猫的重定向页面。
其它类似信息

推荐信息