SSI Wysardry
Server Side Includes

An introduction to Server Side Includes.



Home / SSI / Introduction

Back | Next

What is SSI?

SSI is an abbreviation for Server Side Includes.  They are special commands that can be given to a suitable Web server by placing them inside HTML documents.  You can, for instance, include a standard navigation menu on every page of your site, and if you have to change it you will only have to edit one file.

When a browser requests a file from your Web server, it can be configured to search for SSI commands within HTML documents and execute them.  Programs can be made to run via the exec SSI command.  The command code will be replaced by the results of the program - even if the source is viewed using a browser it will look as if it is part of the document.

Server Side Includes have many advantages over client side technologies such as JavaScript as they run on the server.  This means that anyone who can view an HTML page can see the results of SSI. 

As only the command results are included in the source, they are also a lot more secure from prying eyes. 


What can SSI do?

SSI allows you to include information in a document that is re-generated every time it is accessed.

Some of the things you can include are:-

  • The current time and date
  • The URL of the current document
  • The size of a file on the system
  • The text of another file
  • The output from a CGI program
  • The file name of the current document
  • The last modification time and date of the current document

You can also execute certain system commands (depending on your user privileges).

Site Menu

Sell t-shirts with your design ... for free!

Section Menu


Copyright © 2000-2003 Wysardry

Most recently updated on 11 May, 2003

Home / SSI / Introduction

Back | Next


Please feel free to contact us with any comments or suggestions
Server Side Includes
SSI Wysardry

This site is hosted by Spaceports