Server Side Include (SSI)
Server Side Include (SSI) refers to system call from within an HTML document.
What happens is that when the server gets a request to send an HTML page that
contains SSI's, the server interprets the information and sends that information
instead of the actual code.
If I type <!--#echo var="REMOTE_ADDR"--> the server reads that
as a command that needs to be interpreted and then sends you the information
obtained by running that command. The server basically reads a variable called
REMOTE_ADDR that comes with your request and sends you what that variable is
equal to - in this case -
38.103.63.16
.
The following examples have text preceding and then the Interpreted requests
are in Bold. The command that is entered to achieve the SSI is on the
line following each example.
| this document was last modified on
February 01, 2006 |
<!--#config timefmt="%B %e, %Y"-->
<!--#echo var="LAST_MODIFIED"-->
you are connecting from
38.103.63.16
|
<!--#echo var="REMOTE_HOST"-->
with the IP address of 38.103.63.16
|
<!--#echo var="REMOTE_ADDR"-->
this document name is ssi.shtml
|
<!--#echo var="DOCUMENT_NAME"-->
located at http://www.usd.edu/trio/tut/html/ssi.shtml
|
root http://www.usd.edu <!--#echo var="DOCUMENT_URI"-->
<!--#echo var="HTTP_REFERER"-->
you are using CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
|
<!--#echo var="HTTP_USER_AGENT"-->
<!--#config timefmt="%B %e, %Y"-->
<!--#echo var="DATE_LOCAL"-->
The current time is
17:06:25
|
<!--#config timefmt="%H:%M:%S"-->
<!--#echo var="DATE_LOCAL"-->
|
include text from another file -- (sample not shown) |
<!--#include file="path to file"-->
last modified
February 01, 2006
27350