To see how the commands on this page are used, open the "ssi_demo.shtml" file in a text editor. Select "View Source" in your browser to see how this file is modified by the WebSTAR SSI plug-in before being sent to the browser.
ECHO VALUES
You can display a wide variety of information using the #echo command - Click on this link to display some of these parameters:
Load this page again
Most of the standard NCSA SSI parameters can be used (those not implemented are noted):
The #echo command can also be used to display special values, such as the current random number, the current value of any counter variables created by the #counter command, or any named variables created by the #store command (see the sections on "COUNTERS" and "STORED VARIABLES" for examples of how to display these values):(Not Implemented):
AUTH_TYPE =
Content Length as sent in HTTP Header:
CONTENT_LENGTH =
Content Type as sent in HTTP Header (usually specified only when sent from an HTML form):
CONTENT_TYPE =
GMT Date and Time:
DATE_GMT =
Local Date and Time:
DATE_LOCAL =
Path and Name of this file:
DOCUMENT_NAME =
URI of this file (on disk, not relative to server):
DOCUMENT_URI =
Interface of this SSI plug-in:
GATEWAY_INTERFACE =
MIME-types accepted by browser:
HTTP_ACCEPT =
WWW Client Software identification presented:
HTTP_USER_AGENT =
Date this file was last modified:
LAST_MODIFIED =
Path arguments (the part of the URL after the "$" symbol):
PATH_INFO =
URL decoded path arguments:
PATH_TRANSLATED =
Query arguments (the part of the URL after the "?" symbol):
QUERY_STRING =
URL decoded query arguments:
QUERY_STRING_UNESCAPED =
Username passed by client (an obsolete value used only by very old browsers):
REMOTE_USER =
HTTP Request method:
REQUEST_METHOD =
Name and URL path of the requested file:
SCRIPT_NAME =
Server's port number:
SERVER_PORT =
HTTP Protocol used by server:
SERVER_PROTOCOL =
Server Software:
SERVER_SOFTWARE =
Show current random number:
File Size of the sample file included below:
File Modified:
Counter 1 is:
Display the current value of Counter 1:
Counter 2 is:
Counter 2 incremented again without displaying it:
Counter 2 incremented once again:
Show only to Netscape and compatibles: Hello!
(based on http_user_agent = "")Show after February 1998: Hello!
(based on date_local = "")Show 40 percent of the time: Hello!
(based on random = "")Change random numbers and show either a green, yellow, or red square:
![]()
![]()
![]()
(Based on random = "")
Show if the time is after noon: Hello!
(Based on date_local = "")Don't show if this page is accessed directly, only when reached from a hyperlink (try reloading) : Hello!
Hide only if the QUERY_STRING is "Frans Hals" (follow this reload link): Hello!
(Based on query_string_unescaped = "")
STORED VARIABLES
Display the current contents of the variable named "fruit":
The WebSTAR SSI plug-in also performs conversion of special characters in your HTML pages. You can set the default character translation option in the Server Settings - Web Settings - SSI screen of the WebSTAR Admin application, but you can also control the character translation for individual pages with a #config command. WebSTAR SSI allows you to translate special characters to the equivalent ISO Latin-1 entities, leave characters untranslated, or to restrict the character set to 7-bit ASCII:
ISO Latin-1 conversion:Franais Espaol Portugus
Unconverted 8-bit characters:
Franais Espaol Portugus
ASCII character set:
Franais Espaol Portugus