Monday, May 18, 2009

Set Script Timeout In PHP

In PHP.ini define a script timeout (max_execution_time) if it's exceed , the script returns a fatal error. The default limit is 30 seconds. to set script max execution time we can use below function.



set_time_limit(1000) //1000 seconds

OR

ini_set("max_execution_time","1000"); //1000 seconds

No comments:

Post a Comment