<?php
$max = 1000; // ile razy ma pobrać stronę.
$url = 'http://jakas-strona.pl'; // adres strony.
for($i=0;$i<$max;$i++) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 15);
curl_setopt($ch, CURLOPT_POST, 0);
$html = curl_exec($ch);
curl_close ($ch);
}
?>
Prościej można to zrobić za pomocą
file_get_contents" title="Zobacz w manualu PHP" target="_manual<?php
$max = 1000; // ile razy ma pobrać stronę.
$url = 'http://jakas-strona.pl'; // adres strony.
for($i=0;$i<$max;$i++) {
}
?>