I have been experiencing CGI Timeout errors,
I have tried set_time_limit(600) with no avail. On checking with my Web Host they give this answer in FAQ
In order to ensure server reliability, the timeout on Our servers have been set to 10 seconds for CGI scripts, and 15 seconds for ASP scripts.
If you continue to experience difficulties, you should review the script and try to configure it to run within the above parameters.
I run this script from an array
$query="SELECT * FROM table WHERE county IN ('$countiesArray[$item]')" ;
$result=mysql_query($query);
if (!$result) {
die('Could not connect to database, please refresh your browser:');
}
Is there a function which I can use setting such as Max_timeout then I can implement die() advising the user to refresh prior to the CGI Timeout error which shows have the page in broken code. Any suggestions?