User Tools

Site Tools


uphp:functions:die

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

uphp:functions:die [2017/03/18 19:22]
jeff
uphp:functions:die [2021/09/13 05:57]
Line 1: Line 1:
-======die====== 
-<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> 
- 
-Kill the script 
- 
-====Description==== 
-<well size="sm"><html><span style="font-size:125%;"></html>[[die]] ( ) 
-</well> 
- 
-Terminates the current script 
- 
-====Parameters==== 
-None 
- 
-====Return Value==== 
-None 
- 
-====Examples==== 
-<code php> 
-<? 
-  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 
-?> 
-</code> 
- 
-**Kill a script if not logged in as an adminstrator:** 
- 
-<code php> 
-<? 
-  if ($_SESSION['admin']==0) die(); 
-?> 
-</code> 
- 
-====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 
- 
-[[max_execution_time()]] - Set maximum execution time in seconds 
  
uphp/functions/die.txt · Last modified: 2021/09/13 05:57 (external edit)