Re: Script timeout

From: Date: Thu, 23 Aug 2001 09:41:30 +0000
Subject: Re: Script timeout
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-64071@lists.php.net to get a copy of this message
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.

« previous php.general (#64071) next »