User Tools

Site Tools


uphp:functions:exec

This is an old revision of the document!


exec

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

Run a script with an optional delay

Description

exec ( string $script_name [, int $delay_ms ] )

Parameters

script_name: Path and filename of script to execute

delay_ms: Optional delay in milliseconds before script is executed

Return Value

None

Example

<? 
exec("/scripts/ip.cgi",1000); //run the script in 1 second from now
?>

See Also

function - Define a function

return - Return program control to the calling module

Additional Information

User defined functions can take many different forms, and it is not necessary to use exec() to execute a function unless a direct return value is needed.

If used within a function, the return statement immediately ends execution of the function, and returns its argument as the value of the function call.

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