SSI Basic Tutorial
By
Aleck
First of all make sure your host supports SSI, usually they do, but make sure, it never hurts. Next thing, SSI stands for Server Side Includes, very important to understand 'Server Side' - surfers will never notice that you have SSI-powered pages (btw SE spiders will not notice that either)
How does SSi work? You insert SSI commands into your html file, just simple text command, we will cover 'em later, and server software will parse it (please note that some hosting companies are configuring their server software to pass only some special extensions, usual .shtml - that's faster, 'cuz plain .html's are not parsed, but is better only at high traffic sites) and send _ready_ page to surfer
What we can do with SSI? Rather a lot.
First of all we can run cgi scripts inside our page, that's awesome feature for counters, pictures of the days, even recip tables.
Usually exec feature is used <!--#exec cmd="/cgi-bin/somefolder/somescript.cgi" -->, but I strongly recommend to use virtual SSI command instead: <!--#include virtual="/cgi-bin/somefolder/some script.cgi?someparameter=somevalue" --> 'cuz we can send parameters to our scripts and that rocks, trust me :=) I have all AVS scripts called by virtual directive, when AVS is changing script it takes me 20 seconds to make changes on hundreds pages :)
We can insert external files - very easy to use and nice feature <!--#include file="/somefolder/somefile.txt" -->. Great for putting recip tables, SE interlinking, navigation bars, etc. This feature is working extremely fast, so you can use it rather often without slowing your server a lot
We will not dig deep in SSI, but browser specific content generation using extended SSI is my weakness.
As we know all browsers are a bit different, some features are unique for IE, some for Netscape and using eSSI we/can always be sure that surfer has the best possible variant for his browser.



