Environment variables contain values that identify the server, browser and their capabilities allowing them to communicate. Facilities exist in various scripting languages and in Server Side Includes allowing the webmaster to access these values during runtime to determine how best to deliver a web page. These values are used at the server, but many values are retreived from the client.

This list is incomplete, but covers most of the variables supported on most servers. See our Cheatsheet to see how to use these webserver variables from Server Side Includes.

VARIABLE A
P
A
C
H
E
M
S

I
I
S
DESCRIPTION
AUTH_TYPE x x
ComSpec - x
CONTENT_LENGTH x x
CONTENT_TYPE x x
DATE_LOCAL x x
DATE_GMT x x
DOCUMENT_NAME x x
DOCUMENT_ROOT x x
DOCUMENT_URI x x
GATEWAY_INTERFACE x x
HTTP_ACCEPT x x
HTTP_COOKIE x x
HTTP_FROM x x
HTTP_HOST x x
HTTP_REFERRER x x
HTTP_USER_AGENT x x
HTTPS x x
LAST_MODIFIED x x
PATH - x
PATH_INFO x x
PATH_TRANSLATED x x
QUERY_STRING x x
QUERY_STRING_UNESCAPED x x
REMOTE_ADDR x x
REMOTE_HOST x x
REMOTE_IDENT - x
REMOTE_PORT - x
REMOTE_USER x x
REQUEST_METHOD x x
REQUEST_URI x x
SERVER_ADMIN x x
SERVER_NAME x x
SERVER_PORT x x
SERVER_PROTOCOL x x
SERVER_SOFTWARE x x
SystemRoot - x
windir - x

 

Additional Information

 

 

Please donate to support the construction of this, and other tutorials throughout this site.

 


Bookmark this page and SHARE:  

Search

Donations

Free Training