A server side include, or SSI, is a piece of code
that is embedded into an HTML page and interpreted by the server before
the page is sent to the client's browser. SSIs allow you to include
information in your HTML files like a file's date of last modification, or
even another HTML file.
Not
yet a customer? Click here to
compare our hosting packages to get access to the shopping cart and
all our other incredible features!
Server Side Includes are server intensive.
Because all files need to be parsed by the server, having all of your
pages SSI would cut performance.
We request that you respect this
aspect when using SSI. For example, it does not make sense to have all of
your files use SSI just to add a "last modified date" to them.
It is just as easy and faster to change the date manually when you modify
the file. Please keep this in mind when using SSI. Your pages will load
slower, so use them sparingly. Any file that has the extension .shtml will
automatically be parsed by the server. You can use index.shtml instead of
index.html as your default directory file.
SSI Commands
The following is a list of Server Side Include
basic commands:
Syntax
A server side include command is contained within a comment tag:
<!--#command argument="value" -->
There are six available commands.
-
Include
allows you to have another file included, or
embedded, into the shtml file. It cannot include the output of a CGI
script.
-
Echo
can be used to include the contents of an
environment variable.
-
Exec
will execute a Unix command or CGI script.
-
Fsize
returns the size of a specified file.
-
Flastmod
returns the last modification date of a
specified file.
-
Config
The "Config" command is used to
control things like the format of output and error messages generated
by the parsing process.
SSI is avaiable with all our
hosting
packages.