Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1859
  • Last Modified:

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
0
electricd7
Asked:
electricd7
  • 2
1 Solution
 
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
 
electricd7Author 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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now