[Solved-4 Solutions] Fatal error: Maximum execution time of 30 seconds exceeded
Error Description:
- 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
Solution 1:
- The loop might be endless. If it is not, we could extend the maximum execution time like this:
Solution 2:
- Just put this command in the beginning of the script:
Solution 3:
- Add an
.htaccess
file to the directory where your script is located and put this inside:
Solution 4:
- Follow the path
/etc/php5(your php version)/apache2/php.ini
. - Open it and set the value of
max_execution_time
to a desired one.