electricd7
asked on
Dealing with a server timeout on GoDaddy hosted server and PHP script
Hello,
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!
ED7
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!
ED7
Make sure you are not using unending loop. Can you paste the code here?
ASKER
Script works perfect on different server. Takes about 16 minutes to complete but works.
are you using shared plan?
if so, 16 minutes is too long, this will unfair with other user if you the provider allow your action
you need dedicated host or try the split you long operation
if so, 16 minutes is too long, this will unfair with other user if you the provider allow your action
you need dedicated host or try the split you long operation
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.