Server Side Includes (SSI)

Server Side Includes (SSI) is a simple interpreted server-side scripting language used for webpages. The most common use of SSI is to include the contents of one or more files that are hosted on a web server into a single webpage.

To include the contents from another file in your page, insert the following code:

    <!--#include virtual="path/includename"-->

Where path = the path to your file and includename = the name of the file you want to include. For personal homepages, here is a syntax example:

    <!--#include virtual="/~username/text.txt"-->
    The file "text.txt" is in the public_html directory.

The page that contains the above line must have the executable permission set for world. Issue the 'chmod' command at the unix prompt:

    chmod a+x filename.html
Please rate the quality of this answer: Poor Fair Okay Good Excellent
Not the answer you were looking for? Try different keyword combinations and if you still can’t find your answer, please contact us.
Article ID: 700
Created: Tue, 13 Feb 2007 10:40am
Modified: Mon, 08 Oct 2012 1:51pm