The following is an example of the HTML coding you need to insert in the child
document:
Example:
<!--#flastmod virtual=&PARENT_URI; -->
Use the include directive to include a document (the text from a document) in the
output. You can use the file and virtual tags with the include directive.
file - specify file name: Use this tag to specify the name of a file.
For the flastmod, fsize, and include directives, the file tag is assumed to be relative
to SSI_ROOT if preceded by a /. Otherwise, it is relative to SSI_DIR. The file
specified must exist in SSI_ROOT or in one of its descendents.
Example:
<!--#include file="/path/file" -->
virtual - specify a document URL: Use this tag to specify the URL of a virtual
path to a document.
For the flastmod, fsize, and include directives, the virtual tag is always passed
through the servers mapping directives.
Example:
<!--#include virtual="/path/file" -->
Use the set directive to set a variable that only this file can be echo later.
Example:
<!--#set var="Variable 2" value="AnotherValue" -->
Variables: Server-side includes also allow you to echo a variable alreadyset. While
defining a directive, you can also echo a string in the middle of value. For
example:
<!--#include file="&filename;" -->
Nothing is displayed if an unrecognized variable is found.
Server-side includes look for the variable, echoes where the variable is found, and
proceeds with the function. You can have multiple variable references.When
server-side includes encounter a variable reference inside a server-side include
directive, it attempts to resolve it on the server side. The following example
escapes the & so that server-side includes do not recognize it as a variable. In the
second line of the example, the variable &index;is a server-side variable and is
used to construct the variable name var1. The variable &ecirc; is a client side
variable, so the & is escaped to create the value :fr&ecirc;dor fredwith a
circumflex over the e.
<!--#set var="index" value="1" -->
<!--#set var+"var&index;" value+"fr\&ecirc;d" -->
<!--#echo var="var1" -->
The following characters can be escaped. Escape variables must be preceded with a
backslash (\).
Chapter9. Using Server-Side Includes 137