Server Side Includes

Although these have more to them than just including files I am not going to cover anything else as php is a better scripting language in general. The most common use will be for including an item like a menu which will appear the same on every page so that there is only need to update it in a single place.

Including files

All pages on your website that include SSI should be saved as a .shtml file so that the server knows that they have SSI scripting in them.
This is the single piece of code you need:
<!--#include file="menu.txt" -->
You replace menu.txt with the filename of your choice. It can be .html but it doesn't need to be.

Well thats all there is to including files with SSI. If you wish to do more advanced coding look at our php section.

© Jonathan Waller 2005; QuantumState Visual Basic