Demo of Server Side Includes

Some of the commands

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

Local date: Tuesday, 19-Nov-2024 06:44:18 EST (<!--#echo var="DATE_LOCAL" -->)

GMT date: Tuesday, 19-Nov-2024 11:44:18 GMT (<!--#echo var="DATE_GMT" -->)

This file last modified: Wednesday, 29-Jul-2015 16:10:57 EDT (<!--#echo var="LAST_MODIFIED" -->)

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

Other file last modified: Friday, 08-Jan-2010 12:18:24 EST (<!--#flastmod virtual="plugin.txt" -->)

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

Include a file

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

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Execute a CGI script:

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