Demo of Server Side Includes

Some of the commands

This file name: (<!--#echo var="DOCUMENT_NAME" -->)

Local date: (<!--#echo var="DATE_LOCAL" -->)

GMT date: (<!--#echo var="DATE_GMT" -->)

This file last modified: (<!--#echo var="LAST_MODIFIED" -->)

This file's size: (<!--#fsize file="ssi_example1.shtml" -->)

Other file last modified: (<!--#flastmod virtual="plugin.txt" -->)

Other file's size: (<!--#fsize file="plugin.txt" -->)

Include a file

The following lines are contained in the file plugin.txt. (<!--#include virtual="plugin.txt" -->)

Execute a CGI script:

The script is in a separate .cgi file (<!--#exec cgi="script1.cgi" -->)