set_time_limit : set/increase the PHP Script maximum execution time
By default, PHP has a set of seconds limit to execute the script, if some script reach to run then some fatal error occurs. Default limit is 30 seconds or value defined in max_execution_time in the php.ini file.
When called, set_time_limit() restarts the timeout counter from zero. In other words, if the timeout is the default 30 seconds, and 25 seconds into script execution a call such as set_time_limit(20) is made, the script will run for a total of 45 seconds before timing out.
The maximum execution time, in seconds. If set to zero, no time limit is imposed. So increase the PHP script execution time is easy and one line statement which can be implement on any page where we feel that script need more time to execute.