$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://children.cca.gov.tw/poll/vote_check.php?id=97");
curl_setopt($ch, CURLOPT_HEADER, 0);
// grab URL and pass it to the browser
for ($i= 1 ; $i <= 150 ; $i++){ //跑150 次
$da = curl_exec($ch);
echo $i ;
sleep(3); //每三秒一次
}
// close cURL resource, and free up system resources
curl_close($ch);
沒有留言:
張貼留言