Server-side Includes (SSI)Our NCSA server supports what is called Server Side Includes, and this document bases much of its information from NCSA's documentation. This feature which has been enabled on our server allows users to create documents which can dynamically modify the contents of a page. Some of these features include the following:
What exactly is SSI?As mentioned above, server side includes allows users the ease to customize and unify the look of their documents through something like a universal footer file, for example. Unfortunately, because the server has to go through the entire file to look for any directives which are used by the includes, it can slow access to your page particularly if your page is large. One other side effect is that the document is always "new", causing certain web browsers which use caching algorithms to be unable to cache your page, but instead will re-load it every time it is requested. How to set your files to use SSIThere are two ways to set a file to be recognized by the server as a server-side include file:
SSI DirectivesThe tags for SSI are written in the same way comments are written in regular HTML. Comments within HTML are usually bracketed with the following:
Instead, however, server side includes uses a specific format of comments, as
shown.
A list of the available commands and attributes are given below:
|
Author: Ben Yoshino (ben@wiliki.eng.hawaii.edu)Comments, Questions? | E-mail: webmaster@wiliki.eng.hawaii.edu Last updated on Monday, February 05, 2001 Copyright © 2001 University of Hawai`i, College of Engineering, Computer Facility All rights reserved. |