You are here: Foswiki>System Web>Category>UserDocumentationCategory>Macros>VarENV (2024-12-23, UnknownUser)Edit Attach
Returns the current value of the environment variable in the CGI (Common Gateway Interface) environment. This is the environment that the CommandAndCGIScripts are running in.
If an environment variable is undefined (as against being set to the empty string) it will be returned as not set
.
Note: For security reasons, only those environment variables whose names match the regular expression in the configuration setting {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.
%ENV{MOD_PERL}%
displays as: not set Edit | Attach | Print version | History: r1 | Backlinks | View wiki text | Edit wiki text | More topic actions
Topic revision: r1 - 2024-12-23, UnknownUser
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback