Fatal error: Maximum execution time of 30 seconds exceeded

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

    if all the above didn't work for you then add an .htaccess file to the directory where your script is located and put this inside

    
    php_value post_max_size 200M
    php_value upload_max_filesize 200M
    php_value memory_limit 300M
    php_value max_execution_time 259200
    php_value max_input_time 259200
    php_value session.gc_maxlifetime 1200
    
    

    this was the way I solved my problem , neither ini_set('max_execution_time', 86400); nor set_time_limit(86400) solved my problem , but the .htaccess method did.

提交回复
热议问题