Fatal error: Maximum execution time of 30 seconds exceeded…
you encounter this error that means, that work to do by Apache web server to handle your task was long-time and it was stopped by time limit provided by ini configuration in php. Such task as image resizing or huge files operations can last long. You can change setting of time limit in PHP byfunction set time limit, where you give max execution time in seconds as parameter.
You should be aware of this error message, because it should not take more than 30s to complete a script normally. Sometime, it may because of coding mistakes like (infinity loop in your code).
We strongly recommend you to contact yourprovider and ask them to fix the issue for you.
There are two methods to solve this problem.
Step 1 : Open php.ini; Step 2 : Modify the value of “max_execution_time” to a greater value say 600; Step 3: Restart Server.Method 2 (Recommended):
Add “set_time_limit(600)” in your code, where the input parameter is the max execution time, and 0 means unlimited.
Was this article helpful?
The Real Meaning of “Unlimited” in Web Hosting
Types of Web Hosting
How to check whether mod_rewrite is enabled on server?
How to upload files to a server
How to modify php.ini on localhost
Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes)