Fatal error: Maximum execution time of 30 seconds exceeded
by Jason, 03.30.06 at 5:00 am :: PHP :: permalink :: rss
When PHP is processing a file upload and you receive the error message “Fatal error: Maximum execution time of 30 seconds exceeded” it is because the script has timed out. I was working on an application where this was occuring during a file upload. The entire file would be uploaded, then the error would be displayed
All over the web, you find people telling you to call set_time_limit() on the upload page. This overrides the max_execution_time setting which is found in php.ini. Calling this function on my upload page seems to have no effect on my server.
Changing max_execution_time in php.ini to 0 is supposed to be an unlimited timeout. However i was still receiving the error message. It would say “Fatal error: Maximum execution time of 0 seconds exceeded” which does not make any sense to me at all.
I discovered that, in addition to max_execution_time there is an additional setting max_input_time which controls how long a php file can spend processing the request data.
When i set max_input_time to a higher value, the problem goes away. So, it appears that the error message is reporting the wrong configuration variable.
PHP 4.3.4.4
Apache 2.0
Windows XP Pro SP1
Comments
September 28, 2007 @ 3:17 pm, by Olivia
September 28, 2007 @ 4:41 pm, by Jason
October 15, 2007 @ 6:02 pm, by esra
October 15, 2007 @ 10:31 pm, by Jason
November 7, 2007 @ 8:35 am, by Naveed Hussain
March 26, 2008 @ 2:39 pm, by website designing Pakistan Peshawar
May 20, 2008 @ 1:16 pm, by arkmads
June 7, 2008 @ 7:42 am, by dieq41
June 7, 2008 @ 9:06 am, by dieq41
August 11, 2008 @ 2:30 am, by shanti
Add a comment