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? 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. 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? 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 Link to comment https://forums.phpfreaks.com/topic/71788-maximum-execution-time-error/#findComment-636688 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.