How to fix Fatal error: Maximum execution time of 30 seconds exceeded with PHP?

Spread the love

Sometimes, we want to fix Fatal error: Maximum execution time of 30 seconds exceeded with PHP.

In this article, we’ll look at how to fix Fatal error: Maximum execution time of 30 seconds exceeded with PHP.

How to fix Fatal error: Maximum execution time of 30 seconds exceeded with PHP?

To fix Fatal error: Maximum execution time of 30 seconds exceeded with PHP, we can increase the script timeout.

For instance, we write

ini_set('max_execution_time', '300');

to call ini_set with 'max_execution_time' and 300 to increase the max execution time of a script to 300 seconds.

We can also write

set_time_limit(300);

to call set_time_limit with 300 to do the same thing.

Conclusion

To fix Fatal error: Maximum execution time of 30 seconds exceeded with PHP, we can increase the script timeout.

Leave a Reply

Your email address will not be published.