maliary Posted October 4, 2007 Share Posted October 4, 2007 Hi, I keep getting this error which happens on and off. Fatal error: Maximum execution time of 30 seconds exceeded. Any idea what could be causing it? Quote Link to comment https://forums.phpfreaks.com/topic/71788-maximum-execution-time-error/ Share on other sites More sharing options...
trq Posted October 4, 2007 Share Posted October 4, 2007 Is this when running php scripts? What does the script do? take a look at the max_execution_time php directive. You can increase this for resource intensive scripts by placing... <?php ini_set('max_execution_time','200'); ?> at the top of the script in question. Quote Link to comment https://forums.phpfreaks.com/topic/71788-maximum-execution-time-error/#findComment-361691 Share on other sites More sharing options...
woolyg Posted September 5, 2008 Share Posted September 5, 2008 Hey thorpe, Does that little bit of code allow the 'max_execution_time' value to revert to its original setting after the script is run, or would you be best off running the line of code again to reset it to its former value? Quote Link to comment https://forums.phpfreaks.com/topic/71788-maximum-execution-time-error/#findComment-634230 Share on other sites More sharing options...
Maq Posted September 8, 2008 Share Posted September 8, 2008 Yes it resets the ini file back to the default values. The function ini_set(); is only for the session you run your script. Read more here: http://us3.php.net/manual/en/function.ini-set.php Quote Link to comment https://forums.phpfreaks.com/topic/71788-maximum-execution-time-error/#findComment-636688 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.