Reply to Re: Script halts after 60 minutes

Your name:

Reply:


Posted by Mikhail Kovalev on 02/01/08 20:15

On 1 Feb, 20:55, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> Mikhail Kovalev wrote:
> > On 1 Feb, 20:16, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> >> Mikhail Kovalev wrote:
> >>> On 1 Feb, 03:47, Jerry Stuckle <jstuck...@attglobal.net> 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...@attglobal.net
> >>>> ==================
> >>> 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...@attglobal.net
> >> ==================
>
> >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...@attglobal.net
> ==================

I had no idea!
I had both php4 and php5 installed, and switched from php4 to php5 by
changing the LoadModule line in httpd.conf...

What exactly could I do to make it run as a module?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация