Server Side Includes (SSI)

In this page you find hints for useing SSI on a web-server and some general infomation about SSI.


The red parts comming from a SSI

Include a File (<!--#include file="testSSIinclude.html"-->)

This comes from an INCLUDE-File

The include file has the following contend
<H1>This comes from an INCLUDE-File</H1>

Include a File (2.Variante) (<!--#include virtual="/SSI/testSSIinclude.html"-->)

This comes from an INCLUDE-File

The include file has the following contend
<H1>This comes from an INCLUDE-File</H1>

Exec-Tag (no parameters)

(<!--#exec cgi="/cgi-bin/waltisExamples/ssiTest.pl"-->)

Hello World

Walti Rothlin did it!!

The exec file must look like the following example.
#!/usr/bin/perl -w
print ("Content-Type: text/html\n\n");
print ("Hallo Walti");


Exec-Tag (passing parameters)

(<!--#exec cgi="/cgi-bin/waltisExamples/ssiTest.pl?Param1=Value1&Param2=Value2"-->)

Hello World

Walti Rothlin did it!!



(<!--#include virtual="/cgi-bin/waltisExamples/ssiTest.pl?Param1=Value1&Param2=Value2"-->)

Hello World

Walti Rothlin did it!!



Environment Variables

Date GMT: Wednesday, 10-Dec-2025 04:22:38 GMT
Date Local: 05:22:38 AM Wed Dec 10, 2025 (Using an other format string!!)
Last Modified of this File: 10:45:32 PM Thu Oct 27, 2005
Docu Name of this File: ssiTest.shtml
Docu URI of this File: /SSI/ssiTest.shtml
Query String:

File Information

Size of a File (testSSIinclude.html): 40
Modify Date of a File (testSSIinclude.html): 09:12:17 PM Wed Nov 16, 2005

Author: Walter Rothlin Last Update: 27-Jul-2000