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
Increase your script execution time by adding the following line at top of the PHP script.
ini_set('max_execution_time', 120); //120 seconds = 2 minutes
Reference has taken from Increase the PHP Script Execution Time
Your loop might be endless. If it is not, you could extend the maximum execution time like this:
ini_set('max_execution_time', 300); //300 seconds = 5 minutes
and
set_time_limit(300);
can be used to temporarily extend the time limit.
You can do it easily with WHM. Just got to:
WHM -> Service Configuration -> PHP configuration
editor->
max_execution_time=30
( 30 is default change it to whatever value u want)
Maybe check for any thing that you have changed under the php.ini file. For example I changed the ";intl.default_locale =" to ";intl.default_locale = en_utf8" in order to enable the "Internationalization extension (Intl)" without adding the "extension=php_intl.dll" then this same error occurred. So I suggest to check for similar mistakes.