+ -
当前位置:首页 → 问答吧 → 这个页面如何采集 file_get_contents 读不到信息 why?

这个页面如何采集 file_get_contents 读不到信息 why?

时间:2011-12-24

来源:互联网

采集下面页面的信息

https://www.mysick.com/products/Default.aspx

为何 file_get_contents 读不到信息
用cURL 实验也不行 
这个页面的结构如何?如何可以采集到这个页面的信息?

附:
<php?
$url="https://www.mysick.com/products/Default.aspx";
$contents;
$contents = file_get_contents($url); 
echo $contents;

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); 
$result=curl_exec($ch);
echo $result;
?>

作者: chgckj   发布时间: 2011-12-24

你的环境支持这个file_get_contents函数不

作者: bailixia520   发布时间: 2011-12-24