Next / Previous / Index / TCC Help System / Publications / Site map / NM Tech homepage

HTML Server Side Includes: echo

Tech Computer Center logo

The general form of the SSI echo command is:

      <!--#echo var="variable"-->
where the variable is one of those from the list below. Be sure your page name ends in .shtml.
DATE_LOCAL
Displays the current local date and time at your server. For example, this command:
      <!--#echo var="DATE_LOCAL"-->
would be replaced by a date with a format something like:
      Friday, 28-Jul-2000 15:33:54 MDT
DATE_GMT
Displays the Greenwich Mean Time.
DOCUMENT_NAME
Displays the name of the document---just the file name.
DOCUMENT_URI
Displays the part of the document's Universal Resource Identifier (omitting the ``http://.../' part).
GATEWAY_INTERFACE
Displays the protocol for CGI (Common Gateway Interface) used on the page's server.
LAST_MODIFIED
Displays the date and time when the page was last changed.
SCRIPT_NAME
Displays the path of the script being executed.
SERVER_NAME
Displays the name of page's web server, such as www.nmt.edu.
SERVER_PROTOCOL
Displays the protocol used on the page's Web server (probably a type of HTTP, HyperText Transfer Protocol).
SERVER_SOFTWARE
Displays the name of the software used on the page's Web server.

Next: HTML Server Side Includes: include
See also: Using HTML Server Side Includes (SSI)
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Computer Center: Help System
TCC Publications
Home: About New Mexico Tech

John Shipman, john@nmt.edu

Last updated: 2000/07/28 23:10:31 UT
URL: http://www.nmt.edu/tcc/help/html/ssi_echo.html