This example tests Server Side Includes (SSI) support. It first displays
a form allowing GET/POST to be tested and once Submit Query is press it
dumps all SSI variables, display a file's timestamp and size, displays the
captured output of a simple shell command and changes and tests configuration
parameters.
Before exec tests can be used the following changes must be made:
-
Shell Access must be enabled in the iServer Administration - Server form.
-
In Windows NT change the Servlet definition for SSIncludeServlet as follows:
Alias: SSIncludeServlet
Class File: stec.iws.SSIncludeServlet
Parameter: bindir=./
Parameter: exec=c:\\winnt\\system32\\cmd.exe /c
-
In Windows 9x change the Servlet definition for SSIncludeServlet as follows:
Alias: SSIncludeServlet
Class File: stec.iws.SSIncludeServlet
Parameter: bindir=./
Parameter: exec=c:\\command.com /c
-
In Lixux/Unix change the Servlet definition for SSIncludeServlet as follows:
Alias: SSIncludeServlet
Class File: stec.iws.SSIncludeServlet
Parameter: bindir=./
Parameter: exec=/bin/sh
In Windows NT QUERY_STRING and QUERY_STRING_UNESCAPED will display
The name specified is not recognized as an internal or external
command, operable program or batch file. for each & contained in
the QUERY_STRING.
This example uses ssitesterform.shtml , ssitester.shtml and
include.inc.
[ view source ]
[ run ]
|