SSI Processing

A new feature of the HTTP server is the "Server Side Includes" (SSI). The HTTP server internally processes some of the most usual SSI commands: include, set, echo. The user will be notified by the occurrence of the SSI commands within a Web Page.

To set a SSI variable in a web page use the syntax:

<!--#set var="myStrVar" value="A string variable" --><!--#set var="myIntVar" value="1779945" -->

A variable can reference an existing variable, for example:
<!--#set var="myStrVarRef" value="$myStrVar" -->

To delete a variable use the NULL string:
<!--#set var="myStrVarRef" value="" -->

To display the current value of a SSI variable use the "echo" command:
<!--#echo var="myStrVar" -->

Note that the application will be notified that an echo command is processed and the current value of the SSI variable can be changed.

As an example, this page implements a simple page counter using the variable myStrVar .

<!--#set var="myStrVar" value="A string variable" -->

The SSI variable myStrVar echoed value is:

Other SSI commands will be eventually added: #if, #else, #elif, #exec, etc. The SSI commands need to start at the beginning of a line.
SSI is not a replacement for other dynamic pages technologies. But it's a simple way to add small amounts of dynamic content in a standard way that is supported by most HTTP servers