SSI Examples

Code in file Resulting output
You have requested the file
<I><!--#echo var="DOCUMENT_NAME"--></I>.
You have requested the file SSI.shtml.
It was last modified
<FONT COLOR="#FF0000"> <!--#echo
var="LAST_MODIFIED"--> </FONT>
It was last modified Thursday, 04-Jan-2001 22:02:09 EST
To be specific, you requested
http://<!--#echo var="SERVER_NAME"--><!--#echo
var="DOCUMENT_URI"-->
To be specific, you requested http://www.plexoft.com/SBF/SSI.shtml
<FONT COLOR="RED">
<!--#echo var="SERVER_NAME"-->
</FONT>
is the domain name of the server of this page.
www.plexoft.com is the domain name of the server of this page.
You have requested this page from client
software (a graphical browser like Netscape,
very likely) running on the machine answering
to the domain name
<!--#echo var="REMOTE_HOST"-->.
You have requested this page from client software (a graphical browser like Netscape, very likely) running on the machine answering to the domain name (none).
Following the URL, an optional query string (indicated by a
question mark) contains
<!--#echo var="QUERY_STRING_UNESCAPED"-->
Following the URL, an optional query string (indicated by a question mark) contains (none)
<!--#echo var="DATE_LOCAL"--> Wednesday, 22-Nov-2017 18:57:54 EST
<!--#echo var="DATE_GMT"--> Wednesday, 22-Nov-2017 23:57:54 GMT

For more environment variables to echo, visit informant.cgi.