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
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.