note 72268 added to function.set-time-limit
| From: | bjfieldNO at SPAMgmail dot com | Date: | Wed, 10 Jan 2007 10:53:16 +0000 |
| Subject: | note 72268 added to function.set-time-limit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121521@lists.php.net to get a copy of this message | ||
Timeouts after five minutes in IIS on Windows are caused by an inherited CGI Timeout value of 300
seconds. This is not a PHP problem. The fix is to add custom values for the files or directories
that need longer to run.
In IIS 5.0 or 7.0 (beta as of this note), you can change this value on a fairly granular level using
IIS Manager, under (roughly) YOURSITE -> Properties -> Home Directory -> Configuration
(button) -> Options, but in IIS 6.0, this functionality is turned off (!), so you have to get
into the Metabase.
Find the site number in Metabase Explorer (e.g., 12345678), then from CMD prompt:
[get to the scripts dir]
cd C:\Inetpub\AdminScripts
[this for each subdirectory from off the site root]
cscript adsutil.vbs CREATE W3SVC/12345678/root/"MY SUBDIRECTORY" IIsWebDirectory
[this for the file in question]
cscript adsutil.vbs CREATE W3SVC/12345678/root/"MY SUBDIRECTORY"/ILikeToTimeOut.php
IIsWebFile
[this to set the timeout]
cscript adsutil.vbs set W3SVC/12345678/root/"MY
SUBDIRECTORY"/ILikeToTimeOut.php/CGITimeout "7200"
Note: "7200" is 2 hours in seconds, but can be whatever.
I derived the solution above from this fine article:
http://www.iis-resources.com/modules/AMS/article.php?
storyid=509&page=3
----
Server IP: 216.194.113.175
Probable Submitter: 71.227.213.20
----
Manual Page -- http://www.php.net/manual/en/function.set-time-limit.php
Edit -- https://master.php.net/note/edit/72268
Del: integrated -- https://master.php.net/note/delete/72268/integrated
Del: useless -- https://master.php.net/note/delete/72268/useless
Del: bad code -- https://master.php.net/note/delete/72268/bad+code
Del: spam -- https://master.php.net/note/delete/72268/spam
Del: non-english -- https://master.php.net/note/delete/72268/non-english
Del: in docs -- https://master.php.net/note/delete/72268/in+docs
Del: other reasons-- https://master.php.net/note/delete/72268
Reject -- https://master.php.net/note/reject/72268
Search -- https://master.php.net/manage/user-notes.php