Dealing with a server timeout on GoDaddy hosted server and PHP script
Posted on 2009-05-13
I have a PHP script which works fine on my test machine, but keeps timing out on the GoDaddy production server. I can't see the exact error since GoDaddy's servers only provide 500 Internal Server Error, but I can tell the script runs to a certain point, then quits. If I run it again, it continues where it left off until it times out again. I have set_time_limit(0); as the first line in my script, but it doesn't seem to have any affect. I have been trying to set the max_execution_time within the php.ini file, but it doesn't seem to work either. I think I am dealing with some sort of IIS7 timout. My question is, how do I get around it on a hosted solution? Thanks!