Solved

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

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

688 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