me Banner
TECH
HARDWARE CISCO LINUX MICROSOFT C++ HTML JAVASCRIPT PERL SHELL SCRIPTING SQL NOTES

Basic SSI Directives

All SSI directives have the format:

<!--#command parameter(s)="argument"-->

Each of the symbols is important; be careful not to forget the pound sign (#).

include
Inserts text of document into current file.

  • Arguments
       file - Pathname relative to a document on the server.
       virtual - Virtual path to a document on the server.

  • For
       <!--#include file="stuff.html"-->
       <!--#include virtual="/personal/stuff.html"--;

fsize
Inserts the size of a specified file.

   The size of the file is <!--#fsize file="/mybook.psd"--> bytes.

exec
Executes external programs and inserts output in the current document.

  • Arguments
       cmd - Any application on the host.
  • cgi
       CGI program.

       For example:
       <!--#exec cmd="/bin/finger $REMOTE_USER@$REMOTE_HOST"-->
       This page has been accessed
       <!--#exec cgi="/cgi-bin/counter.pl"-->
       times.