Fatal error: Maximum execution time of 30 seconds exceeded

后端 未结 16 970
逝去的感伤
逝去的感伤 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:50

    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.

提交回复
热议问题