User Tools

Site Tools


uphp:functions:max_execution_time

max_execution_time

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Set the maximum execution time for the current script

Description

max_execution_time ( int $seconds )

This function changes the maximum execution time for the current script. If the 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.

Parameter

$seconds: Maximum execution time

Return Values

None

Example

<?
  max_execution_time(600); // allow the script to run for up to ten minutes
?>

See Also

microtime() - Return the number of milliseconds since boot

time() - Return the current system timestamp

uptime() - Return the uptime in milliseconds

uphp/functions/max_execution_time.txt · Last modified: 2021/09/13 05:57 (external edit)