chings wrote:1. is it the best way to do so ?
Probably not using the browser. PHP has a CLI mode for this sort of thing.
2. i found a strange thing , even i close the IE running this script , the script is still running. how can i stop it ? I finally restart the computer to stop it
thanks.
IE is running this script?
When did PHP become client-side, anyway?
Ignoring that, as far as question two goes, you could change it so that the while() condition was met..... :rolleyes:
$n = 0;
$count=24*60*3; // run this 3x each minute of one day
while ($n<$count) {
fopen($url);
sleep(20);
$n++;
}
At that point, it ought to stop about 24 hours from now....