Class 2 Example - View the PHP global arrays

$_SERVER

DOCUMENT_ROOT /var/www/html
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
HTTP_CACHE_CONTROL no-cache
HTTP_HOST stage.itp.tsoa.nyu.edu
HTTP_PRAGMA no-cache
HTTP_USER_AGENT CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
HTTP_X_CC_ID ccc02-01
HTTP_X_FORWARDED_FOR 38.107.179.218
HTTP_X_VARNISH 1080054391
PATH /bin
QUERY_STRING
REDIRECT_STATUS 200
REMOTE_ADDR 128.122.157.181
REMOTE_PORT 52212
REQUEST_METHOD GET
REQUEST_URI /~cs220/dwd/class02-showenv.php
SCRIPT_FILENAME /home/cs220/public_html/dwd/class02-showenv.php
SCRIPT_NAME /~cs220/dwd/class02-showenv.php
SERVER_ADDR 128.122.157.182
SERVER_ADMIN root@localhost
SERVER_NAME stage.itp.tsoa.nyu.edu
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
Apache/2.2.15 (Red Hat) Server at stage.itp.tsoa.nyu.edu Port 80
SERVER_SOFTWARE Apache/2.2.15 (Red Hat)
PHP_SELF /~cs220/dwd/class02-showenv.php
REQUEST_TIME 1337197753

$_GET

$_POST

$_COOKIE

Put in some text below to see the POST method. The name of the text widget is "firstname":

Firstname: