Three Pistol Nun: the official website of stephen

Nun.

Server Side Includes (SSI)

You know how I used to use frames to allow ease of navigation throughout my website? Well, I've done away with that forever now. No more will you see the menu hovering at the side of the screen even though the page scrolls away. It's gone. I replaced it with these Server Side Includes, a set of instructions inside my HTML that tells the server to include another HTML document inside this one. For example, at the top of this page, I have a tag that reads:

<!--#include virtual="/menu.html"-->

As you can see, it's cleverly disguised as an HTML comment. Actually, it is an HTML comment. If it ever got to a browser, it would be ignored. However, the server, since it's enabled for SSI, simply replaces the comment with the full text of the included document, which is my menu. When I want to make a change, I just change menu.html, like I did when it was a frame. But now it's better.


Last updated 07.20.2008
E-mail here with suggestions, comments, or whatever else.
All material copyright © 2008 Stephen Rintoul. Some rights reserved.