Can the Server Side Include (SSI) echo directive display the values of standard CGI variables?
Yes. Use the echo directive to display the value for specified environment variables (including the standard CGI variables) using the var tag. If a variable is not found, a (None) is displayed. Both the set of standard CGI variables and the SSI specific environment variables that can be displayed using echo are listed in Environment Variables on HTTP Server.
Related Questions
- Im trying to access one of the standard CGI variables (such as $DOCUMENT_ROOT or $HTTP_REFERER) in a user-defined function, and it can seem to find it. Whats wrong?
- In my CGI programs and SSI scripts the various documented SSL_XXX variables do not exist. Why?
- Can the Server Side Include (SSI) echo directive display the values of standard CGI variables?