What SSI environment variables available?

 
DOCUMENT_NAME

The filename of the current HTML document. For example:


This file is called <!--#echo var="DOCUMENT_NAME"-->.

DOCUMENT_URL

The URL of the current file. For example:


This document is located at <!--#echo var="DOCUMENT_URL"-->.

QUERY_STRING_UNESCAPED

An UUencoded query string whose metacharacters are escaped with a backslash (\).

DATE_LOCAL

The local date and time. For example:


Here in San Diego, it is now <!--#echo var="DATE_LOCAL"-->.

DATE_GMT

The current Greenwich Mean Time. For example:


The current time is <!--#echo var="DATE_GMT"--> GMT.

LAST_MODIFIED

The date and time when the current file was last modified. For example:


I last modified this page on <!--#echo var="LAST_MODIFIED"-->.
  • 56 Users Found This Useful
Was this answer helpful?

Related Articles

Instructions using SSI

Server Side Includes - SSISSI works in conjunction with a web page usually with the .shtml...

What are Server-Side Includes?

Server-side includes (SSIs) are simple, HTML-embedded directives that instruct the web server to...

How do I use SSI?

First you must create a page with a .shtml extension! Then SSI is easily implemented into your...

What directives are available?

  The include directive inserts the text of another document, specified either as a file...

What extended SSI elements are available?

flow control elements much like the ones used inprogramming languages. With flow control, you can...