Re: timeouts on loops
| From: | Richard Lynch | Date: | Sun, 23 Sep 2001 20:05:07 +0000 |
| Subject: | Re: timeouts on loops | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68452@lists.php.net to get a copy of this message | ||
No, but you can use a more general 'for' or 'while' loop and set up any
constraints your heart desires:
$start = time();
$limit = 10; # 10 second time-out
while ($start + $limit <= time() && list($key, $value) = each($whatever)){
}
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Evan Nemerson <evan@coeus-group.com>
Newsgroups: php.general
To: <php-general@lists.php.net>
Sent: Sunday, September 23, 2001 1:01 AM
Subject: timeouts on loops
> Is there a way to put a timeout on each iteration of a loop (foreach, to
be
> more specific)?