The Roman Catholic Diocese of Saint Cloud
    home       parishes       schools       email

Diocesan Server Help

Page Design: Server Side Includes

triangle bullet Server Help
triangle bullet Hosting Services
triangle bullet Restrictions
triangle bullet Email Users
triangle bullet Web Page Design
    triangle bullet Standards
    triangle bullet index.html
    triangle bullet Email Links
    triangle bullet Email Forms
    triangle bullet Forms
    triangle bullet SSI's
    triangle bullet Include SSI
    triangle bullet Counters
    triangle bullet Calendars
    triangle bullet SiteSearch
    triangle bullet Podcasting
triangle bullet Web Site Admin
    triangle bullet favicon.ico
    triangle bullet robots.txt
    triangle bullet Error Pages
    triangle bullet Setting Counters
    triangle bullet Redirects
    triangle bullet Realms
    triangle bullet WebDAV
    triangle bullet Logs

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.

DescriptionDirective
as it should appear in HTML
SampleSample
in Reality
Date & Time<!--#config timefmt="%B %d, %Y"--><!--#echo var="date_local"-->March 28, 2003August 29, 2008
Last Modified
identifies when a page was last modified
<!--#echo var="LAST_MODIFIED"-->1999/03/23:10:13:59December 15, 2006
Viewer's IP Address
displays IP address of the viewer's computer
<!--#echo var="REMOTE_ADDR"-->172.22.23.7538.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.htmlEmpty variable value.

Please note that HTTP_REFERER does not work within some firewalls.

Another great SSI directive is the include directive.