obj.conf
file (Note that native threads are turned off.):
Init funcs="shtml_init,shtml_send" shlib="install_dir
/bin/https/bin/Shtml.dll" NativeThreads="no" fn="load-modules"
Init LateInit = "yes" fn="shtml_init"
parse-html
.
The server replaces each command with data determined by the command and its attributes.
The format for a command is:
<!--#The format for eachcommand
attribute1
attribute2
... -->
attribute
is a name-value pair such as:
Commands and attribute names should be in lower case. As you can see, the commands are "hidden" within HTML comments so they are ignored if not parsed by the server. Following are details of each command and its attributes.name
="
value
"
config
command initializes the format for other commands.
errmsg
attribute defines a message sent to the client when an error occurs while parsing the file. This error is also logged in the error log file.timefmt
attribute determines the format of the date for the flastmod
command. It uses the same format characters as the util_strftime()
function. Refer to Appendix E, "Time Formats," for details about time formats. The default time format is: "%A, %d-%b-%y %T"
.sizefmt
attribute determines the format of the file size for the fsize command. It may have one of these values:<!--#config timefmt="%r %a %b %e, %Y" sizefmt="abbrev"-->This sets the date format like 08:23:15 AM Wed Apr 15, 1996, and the file size format to the number of KB or MB of characters used by the file.
include
command inserts a file into the parsed file (it can't be a CGI program). You can nest files by including another parsed file, which then includes another file, and so on. The user requesting the parsed document must also have access to the included file if your server uses access control for the directories where they reside.
virtual
attribute is the URI of a file on the server.file
attribute is a relative path name from the current directory. It may not contain elements such as ../
and it may not be an absolute path.<!--#include file="bottle.gif"-->
echo
command inserts the value of an environment variable. The var
attribute specifies the environment variable to insert. If the variable is not found, (none) is inserted. See below for additional environment variables.
Example:
<!--#echo var="DATE_GMT"-->
fsize
command sends the size of a file. The attributes are the same as those for the include
command (virtual
and file
). The file size format is determined by the sizefmt
attribute in the config
command.
Example:
<!--#fsize file="bottle.gif"-->
flastmod
command prints the date a file was last modified. The attributes are the same as those for the include
command (virtual
and file
). The date format is determined by the timefmt
attribute in the config
command.
Example:
<!--#flastmod file="bottle.gif"-->
exec
command runs a shell command or CGI program.
cmd
attribute (Unix only) runs a command using /bin/sh
. You may include any special environment variables in the command.cgi
attribute runs a CGI program and includes its output in the parsed file.<!--#exec cgi="workit.pl"-->
/shtml/test.shtml
).Last Updated: 03/01/00 09:22:25
© Copyright © 2000 Sun Microsystems, Inc. Some preexisting portions Copyright © 2000 Netscape Communications Corp. All rights reserved.
[an error occurred while processing this directive]