User Tools

Site Tools


uphp:uphp_special_variables

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:uphp_special_variables [2018/04/05 09:19]
admin
uphp:uphp_special_variables [2021/09/13 05:57] (current)
Line 11: Line 11:
 ''**$_GLOBALS**'' - System-wide global variables that can be used as a shared memory area between scripts. This is only cleared upon a reboot. ''**$_GLOBALS**'' - System-wide global variables that can be used as a shared memory area between scripts. This is only cleared upon a reboot.
  
-//Note:  This is different from the PHP $GLOBALS -// this is truly global and accessible across scripts.  $GLOBALS does not exist in uPHP - instead use $_GLOBALS['key_name'] to reference a global script variable. +Note:  //This is different from the PHP $GLOBALS -// this is truly global and accessible across scripts.  $GLOBALS does not exist in uPHP - instead use $_GLOBALS['key_name'] to reference a global script variable. 
-//Tip: If you wish to view the global variables in the system for debugging purposes you can execute the /scripts/tests/globals.cgi script.//+ 
 +Tip:  If you wish to view the global variables in the system you can execute /scripts/tests/globals.cgi. This simple script shows the entire contents of the $_GLOBALS array, which is useful for learning about the [[hardware:wattmons|Wattmon]] system for customizing, programming and debugging purposes.
  
 ''**$_SESSION**'' - Variables defined here are persistent for any web session using a SESSID cookie ''**$_SESSION**'' - Variables defined here are persistent for any web session using a SESSID cookie
uphp/uphp_special_variables.1522919961.txt.gz · Last modified: 2021/09/13 05:56 (external edit)