Perlaccess : Tutorials : File and Directory
Example SSI Call (9.5)
by Jacob A. Wheeler
http://www.bigresources.com

Example SSI Call

The format of a SSI looks something like the following:
<!--#directive attribute="value" -->

You will find two very common directives. The first, and most common, is #include. This directive includes two attributes, virtual and file.
<!--#include virtual="/path/to/perl_script.cgi" -->
Want to embed a cgi/perl script?

<!--#include file="/path/to/textfile.txt" -->
Or maybe a plain text file?

<!--#include virtual="/path/to/header.html" -->
How about an html file? maybe a header or footer?

The next most common SSI directive is ExecCGI. NOTE: You must have ExecCGI enabled in your apache's httpd.conf configuration file for this next method to work. (It's commonly enabled by default)

This method is most commonly used for embedding cgi/perl scripts, but is not limited to.

<!--#exec cgi="/path/to/textfile.txt" -->
An example to call/embed a text file. (works for any file type like previous examples)