[請益] Curl不出網頁資料?
http://fhy.wra.gov.tw/ReservoirPage_2011/StorageCapacity.aspx
想從上面這個網頁抓一些水情資料
之前以$url = "http://fhy.wra.gov.tw/ReservoirPage_2011/StorageCapacity.aspx";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$contents = curl_exec($ch);
preg_match_all('/<td>(.+?)<\/td>/s', $contents, $target);
curl_close($ch);
echo $contents;
var_dump($target);
都能成功抓到
但是今天突然抓不到了lol
有哪位大大能幫我指出錯誤嗎0.0?
感謝ˊˋ
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.67.187
推
04/30 21:13, , 1F
04/30 21:13, 1F
→
04/30 22:23, , 2F
04/30 22:23, 2F
→
04/30 22:24, , 3F
04/30 22:24, 3F
→
04/30 22:24, , 4F
04/30 22:24, 4F
→
04/30 22:25, , 5F
04/30 22:25, 5F
討論串 (同標題文章)
PHP 近期熱門文章
PTT數位生活區 即時熱門文章