Posted by R. Rajesh Jeba Anbiah on 06/18/06 10:58
Vincent Delporte wrote:
> Hi
>
> The script I'm writing needs to wait a random amount of time (1-300s)
> between each iteration of a loop, eg.
>
> while(condition) {
> do something
> //wait between 1s and 5 minutes
> sleep(rand(1,300));
> }
<snip>
Not sure, if you're looking for
<http://in2.php.net/ignore_user_abort> and
<http://in2.php.net/features.connection-handling>
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Navigation:
[Reply to this message]
|