Usage to display an environment variable on a Web page:
<!--#echo var="ENVIRONMENT VARIABLE" -->
Example:
<!--#echo var="DATE_LOCAL" -->
Environment Variable | Description | Actual Result |
---|---|---|
DATE_GMT | the current time and date expressed in Greenwich Mean Time | Tuesday, 03-Dec-2024 17:38:55 GMT |
DATE_LOCAL | the current time and date (expressed in the time zone of the Web server) | Tuesday, 03-Dec-2024 10:38:55 MST |
DOCUMENT_NAME | the name of the file that was requested by the client (browser) | ssichart.shtml |
DOCUMENT_ROOT | the path (everything following the site root, or domain name) on the server to the public_html folder — note that this shows the real path (file structure) on the server, which is not shown in the URL | /home4/moonspot/public_html/teacherjohn |
DOCUMENT_URI | the partial (everything following the domain name) URL of the document sent from the server (the document being viewed) | /tutorials/ssichart.shtml |
HTTP_REFERER | the URL of the document the client came from (the URL of the page that contained the link that the user clicked on to get to the page being viewed) | (none) |
HTTP_USER_AGENT | the user agent string that the client (browser) sends to the Web server (how the browser identifies itself to the server; usually includes the browser version and operating system version of the computer being used to view the current document) | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
LAST_MODIFIED | the time and date that the document being viewed was uploaded to the server | Monday, 16-Jun-2008 09:20:06 MDT |
QUERY_STRING | the information which follows the ? in the URL | |
REMOTE_ADDR | the IP (Internet protocol) address of the client (the IP address of the computer being used to view the current document) | 3.145.45.177 |
REMOTE_HOST | the domain name of the client (the domain name of the computer being used to view the current document) | (none) |
REQUEST_URI | the partial (everything following the site root, or domain name) URL of the document requested by the client (browser) | /tutorials/ssichart.shtml |
SCRIPT_FILENAME | the full path (everything following the site root, or domain name) on the server to the requested script (the SCRIPT_NAME plus the server path) — note that this shows the real path (file structure) on the server, which is not shown in the URL | /home4/moonspot/public_html/teacherjohn/tutorials/ssichart.shtml |
SCRIPT_NAME | the partial (everything following the domain name) URL of the script being executed | /tutorials/ssichart.shtml |
SERVER_ADDRESS | the IP (Internet protocol) address of the Web server | (none) |
SERVER_ADMIN | the email address of the administrator of the Web server | webmaster@teacherjohn.moonspot.com |
SERVER_NAME | the hostname of the Web server | teacherjohn.com |
SERVER_PROTOCOL | the version of Hypertext Transfer Protocol (HTTP) used by the Web server | HTTP/2.0 |
SERVER_SOFTWARE | the name and version of the Web server software | Apache |