HTTP_ACCEPT_LANGUAGE=
SERVER_SIGNATURE=
SCRIPT_FILENAME=/web/edu/topics/php/envVars/env.php
HTTP_ACCEPT_CHARSET=
SERVER_NAME=www.artcontext.org
HTTP_CONNECTION=
REMOTE_ADDR=23.22.240.119
REQUEST_URI=/edu/topics/php/envVars/env.php
TERM=
HOSTTYPE=
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HTTP_HOST=www.artcontext.org
REMOTE_PORT=47318
REQUEST_METHOD=GET
SHELL=
GATEWAY_INTERFACE=CGI/1.1
QUERY_STRING=
SERVER_SOFTWARE=Apache
SERVER_PROTOCOL=HTTP/1.0
SERVER_PORT=80
DOCUMENT_ROOT=/web
OSTYPE=
HTTP_USER_AGENT=CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
SCRIPT_NAME=/edu/topics/php/envVars/env.php
SHLVL=
SERVER_ADMIN=webmaster@localhost
HTTP_REFERER=
HTTP_ACCEPT_ENCODING=x-gzip, gzip, deflate

 

 


Code:
<?
print("HTTP_ACCEPT_LANGUAGE=$HTTP_ACCEPT_LANGUAGE<br>");
print("SERVER_SIGNATURE=$SERVER_SIGNATURE<br>");
print("SCRIPT_FILENAME=$SCRIPT_FILENAME<br>");
print("HTTP_ACCEPT_CHARSET=$HTTP_ACCEPT_CHARSET<br>");
print("SERVER_NAME=$SERVER_NAME<br>");
print("HTTP_CONNECTION=$HTTP_CONNECTION<br>");
print("REMOTE_ADDR=$REMOTE_ADDR<br>");
print("REQUEST_URI=$REQUEST_URI<br>");
print("TERM=$TERM<br>");
print("HOSTTYPE=$HOSTTYPE<br>");
print("PATH=$PATH<br>");
print("HTTP_HOST=$HTTP_HOST<br>");
print("REMOTE_PORT=$REMOTE_PORT<br>");
print("REQUEST_METHOD=$REQUEST_METHOD<br>");
print("SHELL=$SHELL<br>");
print("GATEWAY_INTERFACE=$GATEWAY_INTERFACE<br>");
print("QUERY_STRING=$QUERY_STRING<br>");
print("SERVER_SOFTWARE=$SERVER_SOFTWARE<br>");
print("SERVER_PROTOCOL=$SERVER_PROTOCOL<br>");
print("SERVER_PORT=$SERVER_PORT<br>");
print("DOCUMENT_ROOT=$DOCUMENT_ROOT<br>");
print("OSTYPE=$OSTYPE<br>");
print("HTTP_USER_AGENT=$HTTP_USER_AGENT<br>");
print("HTTP_ACCEPT=$HTTP_ACCEPT<br>");
print("SCRIPT_NAME=$SCRIPT_NAME<br>");
print("SHLVL=$SHLVL<br>");
print("SERVER_ADMIN=$SERVER_ADMIN<br>");
print("HTTP_REFERER=$HTTP_REFERER<br>");
print("HTTP_ACCEPT_ENCODING=$HTTP_ACCEPT_ENCODING<br>");
?>