Tuesday, October 30, 2018

php - Fatal error: Maximum execution time of 30 seconds exceeded



I am downloading a JSON file from an online source and and when it runs through the loop I am getting this error:





Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\temp\fetch.php on line 24



Answer



Your loop might be endless. If it is not, you could extend the maximum execution time like this:



ini_set('max_execution_time', 300); //300 seconds = 5 minutes


and



set_time_limit(300);



can be used to temporarily extend the time limit.


No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...