Solved

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

Posted on 2009-05-13
4
1,754 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

733 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