set_time_limit() in a loop
| From: | Matthew Delmarter | Date: | Fri, 25 Jan 2002 00:20:11 +0000 |
| Subject: | set_time_limit() in a loop | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-82008@lists.php.net to get a copy of this message | ||
Just wondering about set_time_limit() in a loop.
The current code looks something like this:
<?
ignore_user_abort(true);
set_time_limit(1800);
while:
do stuff;
set_time_limit(1800);
endwhile;
?>
Does this reset the timeout to 1800 seconds every time it loops? Or
does it accumulate so that the timeout has 1800 seconds added to it
every time?
The reason I ask is that my ISP informs me that the script is still
running 13 hours later! Or is this related to the ignore_user_abort?
Regards,
Matthew Delmarter