Reply to Re: Script halts after 60 minutes

Your name:

Reply:


Posted by Mikhail Kovalev on 02/02/08 14:40

On 1 Feb, 23:35, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> Mikhail Kovalev wrote:
> > 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!=)
>
> Good - glad to see you found it.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================

Weirdest thing, this didn't fix the problem, still getting a fatal
error after 3600 seconds

Is it possible that this feature is somehow pre-compiled in the php
distribution package I'm using? If so, I may want to change to
something else

[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

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