zgkhoo Posted October 30, 2007 Share Posted October 30, 2007 sometime this happen Fatal error: Maximum execution time of 60 seconds exceeded in H:\xampplite\htdocs\mlm\cardstore.php on line 62 how to solve it? duno why sometime the browser hang in there....then cause this error msg. Quote Link to comment https://forums.phpfreaks.com/topic/75329-maximum-execution-time-of-60-seconds-exceeded-how-to-solve-it/ Share on other sites More sharing options...
~n[EO]n~ Posted October 30, 2007 Share Posted October 30, 2007 in php.ini you need to change this setting Maximum execution time of each script, in seconds max_execution_time = 180 and restart Apache service Quote Link to comment https://forums.phpfreaks.com/topic/75329-maximum-execution-time-of-60-seconds-exceeded-how-to-solve-it/#findComment-380982 Share on other sites More sharing options...
zgkhoo Posted October 30, 2007 Author Share Posted October 30, 2007 how about if i upload to the hosting? i wont able to change the php.ini of hosting thanks.. Quote Link to comment https://forums.phpfreaks.com/topic/75329-maximum-execution-time-of-60-seconds-exceeded-how-to-solve-it/#findComment-380983 Share on other sites More sharing options...
~n[EO]n~ Posted October 30, 2007 Share Posted October 30, 2007 See set_time_limit in php.net void set_time_limit ( int seconds ) Set the number of seconds a script is allowed to run. If this is reached, the script returns a fatal error. The default limit is 30 seconds or, if it exists, the max_execution_time value defined in the php.ini. If seconds is set to zero, no time limit is imposed. When called, set_time_limit() restarts the timeout counter from zero. In other words, if the timeout is the default 30 seconds, and 25 seconds into script execution a call such as set_time_limit(20) is made, the script will run for a total of 45 seconds before timing out. Quote Link to comment https://forums.phpfreaks.com/topic/75329-maximum-execution-time-of-60-seconds-exceeded-how-to-solve-it/#findComment-380991 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.