Server Side Includes can be used to dynamically have the
server enter some information into a web page when the viewer loads it. Below
are some examples of SSI tags. Please remember that your server must be properly
configured to call SSI files.
Tag | Output | Description |
---|---|---|
<!--#echo var="SERVER_NAME"--> | www.ctfire.com | The domain name of the server. |
<!--#echo var="DOCUMENT_NAME"--> | ssi.shtml | The name of the current document. |
<!--#echo var="DOCUMENT_URI"--> | /thebin/ssi.shtml | The path of the current document. |
<!--#echo var="DATE_LOCAL"--> | Friday, 23-May-97 13:50:05 CDT | Displays the local time & date. |
<!--#echo var="REMOTE_ADDR"--> | 206.14.154.183 | The IP number of the viewer. |
<!--#echo var="REMOTE_HOST"--> | firestone.archive.org | The domain name of the viewer. |
<!--#echo var="HTTP_USER_AGENT"--> | ia_archiver/1.6 | The browser the viewer is using. |
<!--#echo var="HTTP_REFERER"--> | (none) | URL of previously viewed page. |