Server Side Includes

What is a Server-Side Include? It's simply a modified HTML file of sorts. Let's say you have a "standardized" header and footer for all of your web pages, like we do here at SmartNet. If you didn't use a SSI, you'd have to manually key in everything for each and every webpage. If you did use an SSI, however, you could enter a SINGLE tag and have everything there! No more retyping hundreds of documents just because someone changed their e-mail address!!

Note that SSI's are not for the inexperienced HTML authors!! If you're just learning HTML, hold off on SSI's until you get a decent grasp of regular HTML. There is just too much that can go wrong!

Using SSI's

<Most information borrowed from NCSA's SSI tutorial - http://hoohoo.ncsa.uiuc.edu/docs/tutorials/includes.html>

All SSI's are accessed in this manner: <!--#command tag1="value1" tag2="value2" -->
SSI documents must have the extension of .shtml. Not .sht, .SHTML, .ShTmL, or whatever else, but .shtml.

NOTE The space before -->! It is very important!! Each command takes different arguments, most only accept one tag at a time. Here is a breakdown of the commands and their associated tags:


SSI Environment Variables

A number of variables are made available to parsed documents. In addition to the CGI variable set, the following variables are made available:


Technical Support: support@smart.net
Billing: billing@smart.net
Webmaster: webmaster@smart.net