Server Side Include Examples
Ex. of FLASTMOD SSI
This document was last modified
Wednesday, 29-Nov-2000 15:16:33 PST
The date was inserted above with the code:
<flastmod virtual="test.html"-->
Ex. of ECHO SSI to display environment Variables
Hey, you -- did you know that your
computer's IP address is
38.107.179.238
Your computer's IP address is part of the
VARIABLES that are available to the web server
through your web browser.
<!--#echo var="REMOTE_ADDR"-->
How long have you been using the web browser:
CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
Again, another of those VARIABLES:
<!--#echo var="HTTP_USER_AGENT"-->
The current time here in California is
Monday, 06-Feb-2012 19:15:08 PST
Okay, okay, my server is confused and thinks it is in
MST not Pacific Standard Time (I'm looking into this but
you get the idea).
<!--#echo var="DATE_LOCAL"-->
(none)