|
Several advanced features are available from the diocesan web server. These extras (called SSI's or Server Side Includes) can be placed inside HTML 'comment' tags.
A few of the most popular SSI directives are described in the table below.
Additional good reading on the subject can be found in the documentation for Apache. Although the diocesan server does not run Apache, the SSI directives are similar.
NOTE: SSI's can only be used in pages with the .shtml file extension.
| Description | Directive as it should appear in HTML | Sample | Sample in Reality |
| Date & Time | <!--#config timefmt="%B %d, %Y"--><!--#echo var="date_local"--> | March 28, 2003 | August 29, 2008
|
Last Modified identifies when a page was last modified | <!--#echo var="LAST_MODIFIED"--> | 1999/03/23:10:13:59 | December 15, 2006
|
Viewer's IP Address displays IP address of the viewer's computer | <!--#echo var="REMOTE_ADDR"--> | 172.22.23.75 | 38.103.63.61
|
Viewer's Web Browser gives information about the viewer's web browser | <!--#echo var="HTTP_USER_AGENT"--> | Mozilla/4.0 (compatible; MSIE 4.01; Mac_PowerPC) | CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
|
Referring Page identifies URL of page containing link to current page | <!--#echo var="HTTP_REFERER"--> | http://www.StCloudDiocese.org/bfile.html | Empty variable value.
|
Please note that HTTP_REFERER does not work within some firewalls.
Another great SSI directive is the include directive.
|