Wrapper function for set_time_limit
When called, attempts to restart the timeout counter from zero.
This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. You can not change this setting with ini_set() when running in safe mode. Your web server can have other timeout configurations that may also interrupt PHP execution. Apache has a Timeout directive and IIS has a CGI timeout function. Security extension may also disable this function, such as Suhosin Hosts may add this to the disabled_functions list in php.ini
If the current time limit is not unlimited it is possible to decrease the total time limit if the sum of the new time limit and the current time spent running the script is inferior to the original time limit. It is inherent to the way set_time_limit() works, it should rather be called with an appropriate value every time you need to allocate a certain amount of time to execute a task than only once at the beginning of the script.
Before calling set_time_limit(), we check if this function is available
Copyright: ElkArte Forum contributors
License: http://opensource.org/licenses/BSD-3-Clause This file contains code covered by: copyright: 2011 Simple Machines (http://www.simplemachines.org) license: BSD, See included LICENSE.TXT for terms and conditions.
Located at sources/Subs.php
||The time limit|
||whether to reset the server timer or not|