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
electricd7Asked:
Who is Participating?
 
electricd7Connect With a Mentor Author Commented:
Closing question as there was no answer to it.  Just had to run the script multiple times until it finally finished all the iterations.
0
 
dhobaleCommented:
Make sure you are not using unending loop. Can you paste the code here?
0
 
electricd7Author Commented:

Script works perfect on different server. Takes about 16 minutes to complete but works.
0
 
ycTINCommented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.