Jump to content

Any Way To Prevent DB Timeout Caused by Server Load Problem?


phpQuestioner

Recommended Posts

Is there any way to prevent mysql from timing out after 60 seconds without a connection? I am having trouble with php pages taking a long time loading on my web host. I called them, but they said it was a temporary overload on my domain. The thing is, temporary doesn't seem temporary; it seems like a lot longer then that.

 

So does any one know a way to display database content with mysql after 60 seconds with no connection? I'm sure the answer probably is "no", but I figure it would not hurt to ask.

Hi,

 

I'm sorry, not sure what you mean? Do you have to wait 60 seconds for the page to load or do your php scripts take 60 seconds or longer to execute?

 

I'm sure you are aware that 60 seconds on the internet is a holiday.... a long one! So that's a really long wait. Otherwise, you might want to increase the server's time limit on script execution using ini_set:

 

Check out the related stuff here: http://uk2.php.net/set_time_limit

 

Hope it helps!

Regards,

Iceman

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.