[Solved-4 Solutions] Fatal error: Maximum execution time of 30 seconds exceeded
- We download a JSON file from an online source and when it runs through the loop we get this error:
Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\temp\fetch.php on line 24
- The loop might be endless. If it is not, we could extend the maximum execution time like this:
- Just put this command in the beginning of the script:
- Add an
.htaccessfile to the directory where your script is located and put this inside:
- Follow the path
/etc/php5(your php version)/apache2/php.ini.
- Open it and set the value of
max_execution_timeto a desired one.