Fatal error: Maximum execution time of 30 seconds exceeded

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

    I had the same problem and solved it by changing the value for the param max_execution_time in php.ini, like this:

    max_execution_time = 360      ; Maximum execution time of each script, in seconds (I CHANGED THIS VALUE)
    max_input_time = 120          ; Maximum amount of time each script may spend parsing request data
    ;max_input_nesting_level = 64 ; Maximum input variable nesting level
    memory_limit = 128M           ; Maximum amount of memory a script may consume (128MB by default)
    

    I hope this could help you.

提交回复
热议问题