Fatal error: Maximum execution time of 30 seconds exceeded

Programming forum

Fatal error: Maximum execution time of 30 seconds exceeded

Postby John » Sun Dec 15, 2013 7:33 pm

How to solve Fatal error: Maximum execution time of 30 seconds exceeded in php?

I am getting error like this

Code: Select all
Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\temp\fetch.php on line 24
John Abraham
John
 
Posts: 419
Joined: Wed Jun 05, 2013 9:15 pm

Re: Fatal error: Maximum execution time of 30 seconds exceed

Postby John » Sun Dec 15, 2013 7:33 pm

Just put below line top of your script
Code: Select all
ini_set('max_execution_time', 300);
John Abraham
John
 
Posts: 419
Joined: Wed Jun 05, 2013 9:15 pm

Re: Fatal error: Maximum execution time of 30 seconds exceed

Postby John » Sun Dec 15, 2013 7:35 pm

We can set on configuration. Just edit in php.ini file
Code: Select all
max_execution_time = 360      ; Maximum execution time of each script, in seconds (I CHANGED THIS VALUE)
max_input_time = 120          ; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit = 128M           ; Maximum amount of memory a script may consume (128MB by default)
John Abraham
John
 
Posts: 419
Joined: Wed Jun 05, 2013 9:15 pm


Return to Programming

cron