|
|

|
 |
|
Server Side Includes
The server side include start delimiter is: <!--# and
the end delimiter is: -->
The following directives are defined:
- exec
-
Include output of executable or CGI script (note).
- cmd
-
Exec real executable.
<!--#exec cmd="ls"-->
- cgi
-
Exec CGI script.
<!--#exec cgi="/cgi-bin/test.script"-->
- config
-
Configure server side include parameters.
- errmsg
-
Message to display when error found in server side include.
<!--#config errmsg="Oops!"-->
- timefmt
-
Time formatting string for
DATE_LOCAL,
DATE_GMT, and LAST_MODIFIED. Uses the
strftime formatting.
<!--#config timefmt="%A, %d-%b-%y %T %Z"-->
- sizefmt
-
File size formatting.
bytes for size exact size.
abbrev shows abbreviated file size and is default.
<!--#config sizefmt="bytes"-->
<!--#config sizefmt="abbrev"-->
- include
-
Include file. Default file names are not appended, so an URI
pointing to a directory causes an error.
- file
-
Path starts at the directory of the current URI.
<!--#include file="/index.html"-->
- virtual
-
Path is adjusted by server for mappings and home directories.
<!--#include virtual="/~user/index.html"-->
- echo
-
Display environment variable.
- var
-
<!--#echo
var="varname"-->
The following variables are defined:
DATE_LOCAL
DATE_GMT
LAST_MODIFIED
DOCUMENT_URI
DOCUMENT_NAME
COUNTER
- fsize
-
Echo file size. Default file names are not appended, so directory
sizes can be retrieved.
- file
-
Path starts at the directory of the current URI.
<!--#fsize file="/index.html"-->
- virtual
-
Path is adjusted by server for mappings and home directories.
<!--#fsize virtual="/~user/index.html"-->
- flastmod
-
Echo files last modification time. Default file names are not appended,
so directory modification times can be retrieved.
- file
-
Path starts at the directory of the current URI.
<!--#flastmod file="/index.html"-->
- virtual
-
Path is adjusted by server for mappings and home directories.
<!--#flastmod virtual="/~user/index.html"-->
Source: NCSA HTTP daemon 1.3 - http_include.c
The second last line in this HTML document is:
Last modified: <EM><!--#echo var="LAST_MODIFIED"--></EM><P>
<A HREF=/><IMG SRC="/pict/home.gif" ALT="[home]"></A>
<A HREF=./><IMG SRC="/pict/up.gif" ALT="[back]"></A><BR>
NOTE The local user maintained directories are subject to:
Options IncludesNoExec. This effectively disables the exec
option. This is a security measure as uncontrolled cgi scripts would
seriously jeopardize server security.
|
|
|