phpQuestioner Posted August 10, 2007 Share Posted August 10, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/64216-any-way-to-prevent-db-timeout-caused-by-server-load-problem/ Share on other sites More sharing options...
Iceman512 Posted August 10, 2007 Share Posted August 10, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/64216-any-way-to-prevent-db-timeout-caused-by-server-load-problem/#findComment-320150 Share on other sites More sharing options...
MadTechie Posted August 10, 2007 Share Posted August 10, 2007 you sure your scripts are not causing the overload ? Quote Link to comment https://forums.phpfreaks.com/topic/64216-any-way-to-prevent-db-timeout-caused-by-server-load-problem/#findComment-320159 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.