Fatal error: Maximum execution time of 30 seconds exceeded

后端 未结 16 969
逝去的感伤
逝去的感伤 2020-11-22 01:27

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

16条回答
  •  渐次进展
    2020-11-22 01:46

    Increase your script execution time by adding the following line at top of the PHP script.

    ini_set('max_execution_time', 120); //120 seconds = 2 minutes
    

    Reference has taken from Increase the PHP Script Execution Time

提交回复
热议问题