Re: Script halts after 60 minutes



Mikhail Kovalev wrote:
On 1 Feb, 20:55, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
Mikhail Kovalev wrote:
On 1 Feb, 20:16, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
Mikhail Kovalev wrote:
On 1 Feb, 03:47, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
Mikhail Kovalev wrote:
Fatal error: Maximum execution time of 3600 seconds exceeded in z:\home
\localhost\www\somefile.php on line 138
php.ini setting fixes default max execution time at 30 sec,
In the script itself I have set_time_limit(0);
I have also tried set_time_limit(90000); with no luck.
Checked if php was running in safe mode, and it wasn't.
Are there any other reasons that can cause this behavior?
Thanks!
mvh
MK
Does your server have a timeout value specified?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@xxxxxxxxxxxxx
==================
Timeout 300 in httpd.conf?
I wouldn't think that would give a 3600 second timeout. Are you running
PHP as a module or a CGI? What does phpinfo() show you for your timeout
value?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@xxxxxxxxxxxxx
==================
http://07db0bc537297586.paste.se/
Timeouts Connection: 300 - Keep-Alive: 15
Is this it
It looks like you're running PHP as a CGI, not a module. Do you have a
timeout set for your CGI's? For instance, if you're using FastCGI it is
an option there, IIRC.

BTW - why are you running PHP as a CGI instead of a module?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@xxxxxxxxxxxxx
==================

OK, figured it out. I used Denwer Apache + php4 distribution (some
years ago) which installs php as cgi
Somehow the cgi mode was preserved through upgrade... Reinstalled and
testing.

Thanks for pointing out the details!=)


Good - glad to see you found it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================

.



Relevant Pages

  • Re: Script halts after 60 minutes
    ... Checked if php was running in safe mode, ... Does your server have a timeout value specified? ... Jerry Stuckle ... JDS Computer Training Corp. ...
    (comp.lang.php)
  • Re: Script halts after 60 minutes
    ... Checked if php was running in safe mode, ... Does your server have a timeout value specified? ... Jerry Stuckle ... JDS Computer Training Corp. ...
    (comp.lang.php)
  • Re: Script halts after 60 minutes
    ... Checked if php was running in safe mode, ... Does your server have a timeout value specified? ... JDS Computer Training Corp. ... It looks like you're running PHP as a CGI, ...
    (comp.lang.php)
  • Re: Script halts after 60 minutes
    ... Does your server have a timeout value specified? ... JDS Computer Training Corp. ... It looks like you're running PHP as a CGI, ... BTW - why are you running PHP as a CGI instead of a module? ...
    (comp.lang.php)
  • Re: Script halts after 60 minutes
    ... Checked if php was running in safe mode, ... Does your server have a timeout value specified? ... JDS Computer Training Corp. ... It looks like you're running PHP as a CGI, ...
    (comp.lang.php)