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
Follow the path /etc/php5(your php version)/apache2/php.ini.
/etc/php5(your php version)/apache2/php.ini
Open it and set the value of max_execution_time to a desired one.
max_execution_time