rbowen 02/01/20 06:43:56 Modified: htdocs/manual/mod mod_include.html Log: Formatting changes for better readability. Specific examples in the #exec cgi section. Anchor on the "include variables" section so that references to it don't seem quite so out of context. Revision Changes Path 1.38 +55 -33 httpd-docs-1.3/htdocs/manual/mod/mod_include.html Index: mod_include.html =================================================================== RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/mod/mod_include.html,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- mod_include.html 20 Jan 2002 02:41:08 -0000 1.37 +++ mod_include.html 20 Jan 2002 14:43:56 -0000 1.38 @@ -102,20 +102,20 @@ valid attributes are:
bytesfor a count in bytes, or
abbrevfor a count in Kb or Mb as appropriate.
strftime(3)library routine when printing @@ -126,17 +126,18 @@
(none). Any dates printed are subject to the currently configured
For example:+ +
<!--#exec cgi="/cgi-bin/example.cgi" -->+
If the script returns a Location: header instead of output, then this will be translated into an HTML anchor.
include virtual element should be
- used in preference to
exec cgi. In particular, + if you need to pass additional arguments to a CGI program, + using the query string, this cannot be done with
exec + cgi, but can be done with
include + virtual, as shown here: + +
<!--#include virtual="/cgi-bin/example.cgi?argument=value" -->
The server will execute the given string using
/bin/sh. The include variables are available
- to the command.
/bin/sh. The include variables are available + to the command, in addition to the usual set of CGI + variables.
The use of
#include virtual is almost always
prefered to using either
#exec cgi or
@@ -233,12 +246,12 @@
virtualattribute should always be used in preference to this one.
The value is a (%-encoded) URL relative to the current document being parsed. The URL cannot contain a scheme or hostname, only a path and an optional query string. If it does not begin with a slash (/) then it is - taken to be relative to the current document.
A URL is constructed from the attribute, and the output the + server would return if the URL were accessed by the client + is included in the parsed output. Thus included files can + be nested.+
This prints out a listing of all existing variables and
their values. Starting with Apache 1.3.12, special characters
are entity encoded (see the
echo element for details)
- before being output. No attributes.
For example:+ +
The printenv element is available only in + Apache 1.2 and above.+
<!--#set var="category" value="help"
The set element is available only in + Apache 1.2 and above.+
elif, and to any program --------------------------------------------------------------------- To unsubscribe, e-mail: firstname.lastname@example.org For additional commands, e-mail: email@example.com