DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

server shutdown in progress message

By: Sunil | 24 Sep 2008 7:48 am

 I have a function that makes about 4 mysql queries to different tables before it loads the page. If I click on several links on my website, one right after another, I get a "server shutdown in progress" message. This is happening instantly after I click on a link so it

doesn't seem like a timing out issue. If I then reload the page the query runs fine.
 
I have tried connecting and disconnecting to the database right before and after each query as well as connecting once, running all the queries, and then disconnecting and it occurs both ways. I also tried inserting a sleep(2) before each query to slow things down but that didn't help either. I've talked to the tech support at godaddy where the site it hosted and they say it is a scripting problem not a server issue but the site was running fine for 5 months and this never happened before. It's only in the past few weeks that it has started happening.
 
Anybody have any ideas or suggestions?

Comments

Try adding this to the top of your script:
set_time_limit( 0);

It is possible that GoDaddy changed the php timeout which broke your
script. Keep in mind, if your script is broken somewhere else, this can
allow your script to run forever...
By: Admin | 17 Nov 2008

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move