Fatal error: Maximum execution time of 30 seconds exceeded

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

    All the answers above are correct, but I use a simple way to avoid it in some cases.

    Just put this command in the begining of your script:

    set_time_limit(0);
    

提交回复
热议问题