Skip to main content

Posts

Showing posts from January, 2008

Maximum Execution Time Exceeded

This error occurs when we exceed the script execution time allocated in the php.ini file.

One solution to this is:

1. Open the php.ini file with in notepad.  The php.ini file is usually located in your PHP installation directory.

2. look for these lines

max_execution_time = 60     ; Maximum execution time of each script, in seconds
max_input_time = 60    ; Maximum amount of time each script may spend parsing request data
memory_limit = 32M      ; Maximum amount of memory a script may consume (16MB)


3. Set the max_execution_time to a higher number, say, 180 which is equivalent to 3 minutes.

4. Restart your Apache then try your script again.

If the error still occurs it means you need to set the execution time to a higher number. Otherwise, it means you need to optimize your script so and make it run faster.