User Tools

Site Tools


uphp:functions:die

This is an old revision of the document!


die

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

Kill the script

Description

die ( )

Terminates the current script

Parameters

None

Return Value

None

Examples

<? 
die(); //nothing beyond this line will be executed
while (1); //without the die() statement above we'd be stuck here until max_execution_time expires
?>
<?
//kill the script if not logged in as an administrator:
if ($_SESSION['admin']==0) {die();}
?>

Additional Information

Mainline PHP has a function or language construct exit() which is not implemented in uPHP.

See Also

process_kill() - Send a kill request to the process number

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