13.3 SSI Environment Variables

Team-Fly    

 
Webmaster in a Nutshell, 3rd Edition
By Robert Eckstein, Stephen Spainhour
Table of Contents
Chapter 13.  Server Side Includes

13.3 SSI Environment Variables

You can use SSI directives to output the values of environment variables in an otherwise static HTML document. These might be standard CGI variables (listed in Chapter 12); or they might be:

DOCUMENT_NAME

The current file:

 You are reading a document called: <!--#echo var="DOCUMENT_NAME"--> 
DOCUMENT_URI

Virtual path to the file:

 You can access this document again by pointing to the URI: <!--#echo var="DOCUMENT_URI"--> 
DATE_LOCAL

Current date and time in the local time zone:

 The time is now <!--#echo var="DATE_LOCAL" --> 
DATE_GMT

Current date and time in Greenwich Mean Time:

 The Greenwich Mean Time is <!--#echo var="DATE_GMT"--> 
LAST_MODIFIED

Last modification date and time for current file:

 The current document was last modified on:  <!--#echo var="LAST_MODIFIED"--> 

Team-Fly    
Top


Webmaster in a Nutshell
Webmaster in a Nutshell, Third Edition
ISBN: 0596003579
EAN: 2147483647
Year: 2002
Pages: 412

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net