Solved

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

Posted on 2009-05-13
4
1,696 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now