iTP Secure WebServer System Administrator's Guide (iTPWebSvr 5.1+)
Configuring the iTP Secure WebServer
iTP Secure WebServer System Administrator’s Guide—522659-001
7-51
Setting Up a Server-Side Include (SSI)
timefmt
gives the server a new format to use when providing dates. This string is
compatible with the strftime library call under most versions of UNIX. For
example:
<!--#config timefmt="%A"-->
the day is: <!--#echo var="DATE_LOCAL"--><br>
<!--#config timefmt="%Y"-->
the year is: <!--#echo var="DATE_LOCAL"--><br>
<!--#config timefmt=%T"-->
the time is: <!--#echo var="DATE_LOCAL"--><br>
<!--#config timefmt=""-->
the default string is: <!--#echo var="DATE_LOCAL"-->
Output:
the day is: Wednesday
the year is: 1996
the time is: 14:21:34
the default string is: Wednesday, 31-Jan-96 14:21:34 EST
The strftime(3) - “%z” (time zone) conversion specification forces the local
time zone to be inserted into the output time string. Using strftime(3) is not
desirable if the time being echoed is DATE_GMT.
sizefmt
determines the formatting to be used for displaying the size of a file. The two
values are bytes, for displaying a formatted byte count (formatted as
1,234,567); and abbrev, for displaying an abbreviated version consisting of the
number of kilobytes or megabytes the file occupies. For example:
<!--config sizefmt="bytes"-->
size=<!--#fsize file="size"-->
Output:
size=1,652,708
include
The include command inserts the text of a document into the parsed document.
Any included file specified as virtual is subject to any region commands that apply
to its URL. This command accepts two tags:
virtual
gives a virtual path to a document served by the local server. You may only
access a text file (for example, plain text, HTML, or parsed HTML) this way.
You cannot access an executable file in this fashion; however, you can access
another parsed document. For example:
<!--#include virtual="/user/text.shtml"-->