hi, i have a php proxy script and i have installed it on my website when downloading through proxy it downloads the first 6 to 7 mb of data.if the file is greater than 7 mb it timesout what can i do for that ofcourse i my connection speed is 128 kb but can the code be changed so that it does not timeout? i contacted the host support they said they cannot increase the timeout do you have any ideas? is there any trick for that? i found this too: 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<!-- / message -->
We cannot change the CGI timeout on the server because it can cause serious performance issue. Are you hosted on Win2k3 or 2k8? with 2k8, PHP is running as ISAPI which has a longer timeout, i believe. Bruce DiscountASP.NET www.DiscountASP.NET