This is an old revision of the document!
WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0
Set the maximum execution time for the script
This function changes the maximum execution time for the current script. If a script continues to execute for longer than this time it is terminated. The default value is not affected by this function, it is configured in Control Panel > uPHP Script Setup (uPHP Settings) and is stored in /config/uphp.ini
.
$seconds: Maximum execution time
None
<? max_execution_time(600); // allow the script to run for up to ten minutes ?>
microtime() - Return number of milliseconds since boot
time() - Return current system timestamp
uptime() - Return uptime in milliseconds