作者characterlu (MineMine)
看板PHP
標題[請益] curl測試
時間Thu Jan 5 04:41:32 2012
我不確定是否用curl,我想要做的是:
某網址:
http://www.xxx.com.tw/100.html 到
http://www.xxx.com.tw/300.html 共有200個網頁
我想測試到底有那些網頁是存在的
假設迴圈跑到
http://www.xxx.com.tw/156.html 存在
則寫進 a.txt 裡, 不存在則繼續
請問應該怎麼做呢?
謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.117.32.157
1F:推 knuckles:用get_headers() 看有沒有抓到 HTTP/1.1 200 OK 01/05 10:06