Michael Doran Home Page
Contact | Site Map | Search  
  Home > Archives > Server Side Includes > Examples > Echoing Environment Variables

Server Side Includes

Examples

Echoing environment variables: additional examples

Syntax:   <!--#echo var="VARIABLE"-->
Variable Result
HTTP_HOST rocky.uta.edu
DATE_LOCAL Saturday, 17-May-2008 07:49:14 CDT
DOCUMENT_NAME echo.html
DOCUMENT_URI /doran/ssi/echo.html
LAST_MODIFIED Monday, 04-Feb-2002 16:41:47 CST
HTTP_USER_AGENT CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
REMOTE_ADDR 38.103.63.17
HTTP_REFERER (none)
These are just a few of the environmental variables that can be echoed. For a full listing, insert this command (for Unix platforms) in a web page:
                      <!--#exec cmd="env"-->