fekaduw Posted May 22, 2007 Share Posted May 22, 2007 Hello there, I was trying to access the mysql database i constructed using phpMyAdmin. I provided the host name, user name and password appropriately. But it displays a fatal error that says: "Fatal error: Maximum execution time of 30 seconds exceeded in ...\libraries\dbi\mysqli.dbi.lib.php". How can i modify the maximum execution time? i tried to change the the $cfg['ExecTimeLimit'] to 0 (in the config.default.php) but it didn't work. I need help please. Any help is highly appreciated.... thanks a lot Quote Link to comment https://forums.phpfreaks.com/topic/52517-solved-how-can-i-change-the-maximum-execution-time/ Share on other sites More sharing options...
MadTechie Posted May 22, 2007 Share Posted May 22, 2007 you may want to post some code as if its taking longer than 30 seconds its possible you have a neverending loop or something <?php set_time_limit(0); ini_set('max_execution_time',60000); ?> Quote Link to comment https://forums.phpfreaks.com/topic/52517-solved-how-can-i-change-the-maximum-execution-time/#findComment-259147 Share on other sites More sharing options...
fekaduw Posted May 22, 2007 Author Share Posted May 22, 2007 where should i put this code then? Quote Link to comment https://forums.phpfreaks.com/topic/52517-solved-how-can-i-change-the-maximum-execution-time/#findComment-259162 Share on other sites More sharing options...
taith Posted May 22, 2007 Share Posted May 22, 2007 anywhere before the loop thats timing out Quote Link to comment https://forums.phpfreaks.com/topic/52517-solved-how-can-i-change-the-maximum-execution-time/#findComment-259163 Share on other sites More sharing options...
fekaduw Posted May 22, 2007 Author Share Posted May 22, 2007 Thanks, i just put the code inside mysqli.dbi.lib.php file and it did stop the fatal error but it takes too much time to display. What shall i do? Quote Link to comment https://forums.phpfreaks.com/topic/52517-solved-how-can-i-change-the-maximum-execution-time/#findComment-259173 Share on other sites More sharing options...
taith Posted May 22, 2007 Share Posted May 22, 2007 more then likely... you have an indefinate loop... it goes and goes and goes intill it goe kapoot... Quote Link to comment https://forums.phpfreaks.com/topic/52517-solved-how-can-i-change-the-maximum-execution-time/#findComment-259191 Share on other sites More sharing options...
MadTechie Posted May 22, 2007 Share Posted May 22, 2007 i agree, (as i suggected in the first post, you need to post some code) Quote Link to comment https://forums.phpfreaks.com/topic/52517-solved-how-can-i-change-the-maximum-execution-time/#findComment-259196 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.