The echo command makes available the set of environment variables sent to CGI programs. Using this command you can send these variables back to the user without having to resort to CGI programs. The echo command is followed by the parameter and argument values "var=environment variable"
Simple Example: Output Environmental Variables
The following SHTML file displays a selection of SSI variables.
<html>
<head>
<title>SSI Variables</title>
</head>
<h1>SSI Environment Variables</h1>
<pre>
SERVER SOFTWARE : <!--
GATEWAY_INTERFACE : <!--
SERVER_PROTOCOL : <!--
SERVER_NAME : <!--
SERVER_PORT : <!--
REQUEST_METHOD : <!--
REMOTE_HOST : <!--
HTTP_USER_AGENT : <!--
DATE_LOCAL : <!--
DATE_GMT : <!--
</pre>
</body>
</html>
Will result in something similar to the following being sent to the client:
<html>
<head>
<title>SSI Variables</title>
</head>
<h1> SSI Environment Variables </h1>
<pre>
SERVER SOFTWARE : Zeus/3.0
GATEWAY_INTERFACE : CGI/1.1
SERVER_PROTOCOL : HTTP/1.0
SERVER_NAME : www.zeus.co.uk
SERVER_PORT : 80
REQUEST_METHOD : GET
REMOTE_HOST : pc203.zeus.co.uk
REMOTE_ADDR : 10.0.0.14
HTTP_USER_AGENT : Mozilla/4.0b5 [en] (Win95; I)
DATE_LOCAL : 06:12:16 PM 06/02/97
DATE_GMT : 05:12:16 PM 06/02/97
</pre>
</body>
</html>