RE: [PHP] Script timeout
| From: | (Dave) | Date: | Thu, 23 Aug 2001 12:36:51 +0000 |
| Subject: | RE: [PHP] Script timeout | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64080@lists.php.net to get a copy of this message | ||
flush is your friend
>-----Original Message-----
>From: Christian Reiniger [mailto:creinig@mayn.de]
>Sent: Thursday, August 23, 2001 5:42 AM
>To: Julian Wood; php-general@lists.php.net
>Subject: Re: [PHP] Script timeout
>
>
>On Wednesday 22 August 2001 17:59, Julian Wood wrote:
>> I have a script which has to do a *lot* of work. In fact, it times out
>> after 300 seconds, but is only about half done at that point. So I
>> tried using set_time_limit(0) to no avail (php is *not* running in safe
>> mode). So next I tried this directive in the apache config file:
>> php_value max_execution_time 12000 (and various other values too). Now
>> this changed the value of the constant correctly as reported by
>> phpinfo(), but not as reported by get_cfg_var(max_execution_time),
>> which still reported the default 30s. Empirically, the script would
>> still time out at exactly 300 seconds, as before. So, any idea what is
>> going on? Why timeout at 300s instead of the 30s or the 12000s which
>> are the only two values reported? Any other workarounds? This is php
>> 4.0
>
>Looks like some HTTP timeout, i.e. either Apache or the browser is
>getting bored. Try outputting something from time to time.
>
>--
>Christian Reiniger
>LGDC Webmaster (http://lgdc.sunsite.dk/)
>
>Install once, run forever. Linux.
>
>--
>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
>
>
>