RE: [PHP] set_time_limit() in a loop
| From: | Martin Towell | Date: | Fri, 25 Jan 2002 00:55:21 +0000 |
| Subject: | RE: [PHP] set_time_limit() in a loop | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-82023@lists.php.net to get a copy of this message | ||
no, that shouldn't affect it - ignore_user_abort() keeps the script going
even if the user aborts (I'm assuming you already knew that...) so the only
thing that I can think of that's keeping the script going it the while loop
- check the exit condition to make sure it does actually end...
Martin
-----Original Message-----
From: Matthew Delmarter [mailto:matt@adplusonline.com]
Sent: Friday, January 25, 2002 11:56 AM
To: Martin Towell
Cc: PHP Mailing List
Subject: RE: [PHP] set_time_limit() in a loop
I should also mention that the loop is sending mail using mail().
Is it possible that this is the problem somehow?
-----Original Message-----
From: Martin Towell [mailto:martin.towell@world.net]
Sent: Friday, January 25, 2002 1:16 PM
To: 'Matthew Delmarter'; PHP Mailing List
Subject: RE: [PHP] set_time_limit() in a loop
your first thought was correct - it sets it to 1800, it's NOT
accumulative.
it would have something to do with ignore_user_abort(true); and also
is your while loop's exit check working?
Martin
-----Original 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail:
php-list-admin@lists.php.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net