User Tools

Site Tools


uphp:functions:die

die

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

Kill the script

Description

die ( )

Terminates the current script

Parameters

None

Return Values

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 a 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 a process

max_execution_time() - Set the maximum execution time for the current script

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