Solved

Dealing with a server timeout on GoDaddy hosted server and PHP script

Posted on 2009-05-13
4
1,721 Views
Last Modified: 2013-12-25
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
0
Comment
Question by:electricd7
  • 2
4 Comments
 
LVL 5

Expert Comment

by:dhobale
ID: 24380054
Make sure you are not using unending loop. Can you paste the code here?
0
 

Author Comment

by:electricd7
ID: 24380215

Script works perfect on different server. Takes about 16 minutes to complete but works.
0
 
LVL 7

Expert Comment

by:ycTIN
ID: 24381240
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
 

Accepted Solution

by:
electricd7 earned 0 total points
ID: 24486605
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

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question