RE: [PHP] set_time_limit() on Mac
| From: | Jay Blanchard | Date: | Tue, 07 Oct 2003 11:29:27 +0000 |
| Subject: | RE: [PHP] set_time_limit() on Mac | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-165288@lists.php.net to get a copy of this message | ||
[snip]
i'm under the impression that max execution time / set_time_limit() is
server specific, and completely independant of what computer is being
served
the pages?
[/snip]
Not server specific and overrides whatever you have set in php.ini and
httpd.conf for the page in which the set_time_limit is contained.
set_time_limit(10) limits the script to 10 seconds.
[quote]
When called, set_time_limit() restarts the timeout counter from zero. In
other words, if the timeout is the default 30 seconds, and 25 seconds
into script execution a call such as set_time_limit(20) is made, the
script will run for a total of 45 seconds before timing out.
[/quote]
So your script is running for a certain length of time, then it hits the
set_time_limit function and quits after 10 more seconds. Set your time
limit up and see if it completes