PHP Coding Tips

Tuesday, August 14, 2012

Maximum execution time of 30 seconds exceeded in...

If you encounter this error that means, that work to do by apache web server to handle your taks was long-time nad it was stopped by time limit provided by ini configuration in php. Such task as image resizing or huge files operations can ast long. You can change setting of time limit in PHP by function set time limit, where you give max execution time in seconds as parameter:set_time_limit( 300 );But be aware. You can hung your server if your job is endless (like never ending loop), so don't set this value too high.

No comments:

Post a Comment