RE: [PHP-WIN] Re: Why does php exit after 6 minutes? - SOLVED
| From: | HKG) | Date: | Thu, 08 Jan 2004 05:29:19 +0000 |
| Subject: | RE: [PHP-WIN] Re: Why does php exit after 6 minutes? - SOLVED | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-22521@lists.php.net to get a copy of this message | ||
We all do our misstakes! :)
In any case, this is NOT php related.
It has to do with IIS. IIS has about 5 watchdogs one need to take care
about. Thanks to a tip from Frank Kromman I were able to nail this one down:
The manual on CGI configuration does not say anything about timeouts but
there is a tab with two timout values for the configuration in IIS
manager(session, and execution) but these only affect ASP session. One has
to do a change in the metabase.xml to set this. There are example script on
how to do this, but these are for Java, perl and VBScript, hence useless for
me. I changed the defualt value of 300 for CGItimeout directly in the file:
%WINROOT%/system32/inetsrv/metabase.xml, something.
and then it worked just fine.
-----Original Message-----
From: Manuel Vazquez Acosta
To: php-windows@lists.php.net
Sent: 2004-01-07 18:41
Subject: Re: [PHP-WIN] Re: Why does php exit after 6 minutes?
Ops, I was missed up (I did 3600/2 instead 3600/10)
Manu.
"Frank M. Kromann" <frank@kromann.info> wrote in message
news:10734956916600000@9866357972520000.9866341568840000...
>
> The last time I checked 1800 seconds was equal to 30 min :-)
>
> 6 min is 360 seconds.
>
> - Frank
>
> > Your configuration imposes the 6 mins limit:
> >
> > > phpinfo(): max_execution_time: 1800s
> > > phpinfo(): mssql.timeout: 1800s
> >
> > So, PHP scripts won't run more than 1800 seconds, ie 6 mins.
> >
> > Try set_time_limit(0); at the beginning of your script to avoid time
> > limitations.
> >
> > Manu.
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php