Buyers' Guide
Host and Design
SSI Defined
Server Side Includes (SSI) are a popular solution on the Web because of their browser compatibility—most of the work is performed by the server. You can use SSI commands on your Web pages to insert content from another part of your site, creating a dynamic result. Web pages that contain an SSI will be processed or parsed by the server before displaying back on the page, very similar to the scripting process. The combination of static HTML page and the SSI files will be seamlessly displayed in the Web browser.

Web servers rely on a unique file extension to recognize an SSI, but each server is different. Initially, they required the *.ssi extension to process SSIs. Our servers require one of two file extensions to process SSIs in your Web pages:

*.stm

*.shtml

For example, a home page might be index.shtml instead of index.html. The below example illustrates the correct syntax for a SSI command in your Web pages:

<!--#command argument="value"-->

This is a common SSI command. You could have chosen the echo, include, or confab commands instead of command. The argument attribute gives further instruction for the treatment of the SSI. Each SSI has its own set of arguments and values.

A popular SSI value is the include command. This command tells the server to insert text from a specified file into the Web page before delivering it to the browser. If you wanted a copyright statement or ‘last updated’ statement at the bottom of each page, you could use this SSI command on the bottom of each page. The syntax for this SSI command appears as follows:

<!--#include file="filename.ext"-->

Back To FAQ Main Page
©2001 CyberShouts. All Rights Reserved.