User Tools

Site Tools


uphp:functions:max_execution_time

This is an old revision of the document!


max_execution_time

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

Set the maximum execution time for the script

Description

max_execution_time ( int $seconds )

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.

Parameter

$seconds: Maximum execution time

Return Value

None

Example

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

See Also

microtime() - Return number of milliseconds since boot

time() - Return current system timestamp

uptime() - Return uptime in milliseconds

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