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
Your script is timing out. Take a look at the set_time_limit() function to up the execution time. Or profile the script to make it run faster :)