data/TWiki/VarENV.txt
changeset 0 414e01d06fd5
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/data/TWiki/VarENV.txt	Sat Jan 26 15:50:53 2008 +0100
     1.3 @@ -0,0 +1,9 @@
     1.4 +%META:TOPICINFO{author="TWikiContributor" date="1170581173" format="1.1" version="1"}%
     1.5 +%META:TOPICPARENT{name="TWikiVariables"}%
     1.6 +#VarENV
     1.7 +---+++ ENV{"varname"} -- inspect the value of an environment variable
     1.8 +   * Returns the current value of the environment variable in the CGI (Common Gateway Interface) environment. This is the environment that the TWiki scripts run in on the web server.
     1.9 +   * __Note:__ For security reasons, only those variables whose names match the regular expression in ={AccessibleENV}= in the *Security Settings/Miscellaneous* section of =configure= can be displayed. Any other variable will just be shown as an empty string, irrespective of its real value.
    1.10 +   * Example: =%<nop>ENV{MOD_PERL}%= displays as: %ENV{MOD_PERL}%
    1.11 +   * If a variable is undefined (as against being set to the empty string) it will be returned as =not set=.
    1.12 +   * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarHTTPHOST][HTTP_HOST]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarREMOTEADDR][REMOTE_ADDR]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarREMOTEPORT][REMOTE_PORT]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarREMOTEUSER][REMOTE_USER]]