Hi... I'm not shure if this is a PHP thing or not but I am running quite an intensive script which keeps timeing out...I have tried altering what is the CGI Timeout in IIS to no avail...is there anything I need to do in PHP.ini.
I am using XP and IIS 5.1.
Thanks Ian.
CGI Application Timout
Moderator: General Moderators
- icarpenter
- Forum Commoner
- Posts: 84
- Joined: Mon Mar 07, 2005 8:12 am
- Location: Kent, England
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
Some scripts have the nature of taking a long time to finish. In that case, use:
For an unlimited time limit, or replace 0 with whatever amount of seconds you want to pass before the script times out.
More information here: http://us2.php.net/manual/en/function.s ... -limit.php
Code: Select all
set_time_limit(0);More information here: http://us2.php.net/manual/en/function.s ... -limit.php
- icarpenter
- Forum Commoner
- Posts: 84
- Joined: Mon Mar 07, 2005 8:12 am
- Location: Kent, England
Thanks for that I have tried this but it still keeps timing out after about 4 minutes...This could be an IIS thing I guess.
I'm going to try moving over to Apache to see if the result varies...
It seems to me that the server is dropping the connection but I cant seem to extend the CGI timout function???
I'm going to try moving over to Apache to see if the result varies...
It seems to me that the server is dropping the connection but I cant seem to extend the CGI timout function???
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- icarpenter
- Forum Commoner
- Posts: 84
- Joined: Mon Mar 07, 2005 8:12 am
- Location: Kent, England