You are here: Re: Script halts after 60 minutes « PHP Programming Language « IT news, forums, messages
Re: Script halts after 60 minutes

Posted by Mikhail Kovalev on 02/01/08 22:21

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
> ==================

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!=)

 

Navigation:

[Reply to this 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

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