|
|
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 - 75.49.226.88 . 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.
<!--#config timefmt="%B %e, %Y"-->
<!--#echo var="LAST_MODIFIED"-->
<!--#echo var="REMOTE_HOST"-->
<!--#echo var="REMOTE_ADDR"-->
<!--#echo var="DOCUMENT_NAME"-->
root http://www.usd.edu <!--#echo var="DOCUMENT_URI"-->
<!--#echo var="HTTP_REFERER"-->
<!--#echo var="HTTP_USER_AGENT"-->
<!--#config timefmt="%B %e, %Y"-->
<!--#echo var="DATE_LOCAL"-->
<!--#config timefmt="%H:%M:%S"--> <!--#echo var="DATE_LOCAL"-->
<!--#include file="path to file"--> last modified February 01, 2006 22873
|