headers[Accept] = text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
headers[Accept-Charset] = ISO-8859-1,utf-8;q=0.7,*;q=0.7
headers[Accept-Encoding] = gzip
headers[Accept-Language] = en-us,en;q=0.5
headers[Cache-Control] = no-cache
headers[Connection] = close
headers[Host] = tecfa.unige.ch
headers[Pragma] = no-cache
headers[User-Agent] = CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
headers[x-cc-id] = ccc03-01
Will display all environment variables in $argv (probably none here):
GLOBALS[GLOBALS] = Array
GLOBALS[_ENV] = Array
GLOBALS[HTTP_ENV_VARS] = Array
GLOBALS[LD_LIBRARY_PATH] = /usr/local/apache/libexec:/usr/local/lib:/usr/local/ssl/lib:/opt/sfw/lib
GLOBALS[PATH] = /usr/sbin:/usr/bin
GLOBALS[TZ] = MET
GLOBALS[_INIT_NET_STRATEGY] = none
GLOBALS[_INIT_PREV_LEVEL] = S
GLOBALS[_INIT_RUN_LEVEL] = 3
GLOBALS[_INIT_RUN_NPREV] = 0
GLOBALS[_INIT_UTS_ISA] = sparc
GLOBALS[_INIT_UTS_MACHINE] = sun4u
GLOBALS[_INIT_UTS_NODENAME] = tecfasun2.unige.ch
GLOBALS[_INIT_UTS_PLATFORM] = SUNW,Sun-Fire-V240
GLOBALS[_INIT_UTS_RELEASE] = 5.10
GLOBALS[_INIT_UTS_SYSNAME] = SunOS
GLOBALS[_INIT_UTS_VERSION] = Generic_127111-05
GLOBALS[_INIT_ZONENAME] = global
GLOBALS[DOCUMENT_ROOT] = /web
GLOBALS[HTTP_ACCEPT] = text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
GLOBALS[HTTP_ACCEPT_CHARSET] = ISO-8859-1,utf-8;q=0.7,*;q=0.7
GLOBALS[HTTP_ACCEPT_ENCODING] = gzip
GLOBALS[HTTP_ACCEPT_LANGUAGE] = en-us,en;q=0.5
GLOBALS[HTTP_CACHE_CONTROL] = no-cache
GLOBALS[HTTP_CONNECTION] = close
GLOBALS[HTTP_HOST] = tecfa.unige.ch
GLOBALS[HTTP_PRAGMA] = no-cache
GLOBALS[HTTP_USER_AGENT] = CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
GLOBALS[HTTP_X_CC_ID] = ccc03-01
GLOBALS[REMOTE_ADDR] = 38.107.179.227
GLOBALS[REMOTE_PORT] = 57764
GLOBALS[SCRIPT_FILENAME] = /web/guides/php/examples/http-basics/test.php
GLOBALS[SERVER_ADDR] = 129.194.9.47
GLOBALS[SERVER_ADMIN] = webmaster-tecfa@unige.ch
GLOBALS[SERVER_NAME] = tecfa.unige.ch
GLOBALS[SERVER_PORT] = 80
GLOBALS[SERVER_SIGNATURE] =
GLOBALS[SERVER_SOFTWARE] = Apache/1.3.31 (Unix) DAV/1.0.3 PHP/5.2.5
GLOBALS[UNIQUE_ID] = T7sv34HCCS8AABNauSQ
GLOBALS[GATEWAY_INTERFACE] = CGI/1.1
GLOBALS[SERVER_PROTOCOL] = HTTP/1.1
GLOBALS[REQUEST_METHOD] = GET
GLOBALS[QUERY_STRING] =
GLOBALS[REQUEST_URI] = /guides/php/examples/http-basics/test.php
GLOBALS[SCRIPT_NAME] = /guides/php/examples/http-basics/test.php
GLOBALS[PATH_TRANSLATED] = /web/guides/php/examples/http-basics/test.php
GLOBALS[PHP_SELF] = /guides/php/examples/http-basics/test.php
GLOBALS[REQUEST_TIME] = 1337667551
GLOBALS[argv] = Array
GLOBALS[argc] = 0
GLOBALS[_POST] = Array
GLOBALS[HTTP_POST_VARS] = Array
GLOBALS[_GET] = Array
GLOBALS[HTTP_GET_VARS] = Array
GLOBALS[_COOKIE] = Array
GLOBALS[HTTP_COOKIE_VARS] = Array
GLOBALS[_SERVER] = Array
GLOBALS[HTTP_SERVER_VARS] = Array
GLOBALS[_FILES] = Array
GLOBALS[HTTP_POST_FILES] = Array
GLOBALS[_REQUEST] = Array
GLOBALS[birthday] = 897688800
GLOBALS[now] = 1337667551
GLOBALS[diff] = -439978751
GLOBALS[headers] = Array
GLOBALS[key] = key
GLOBALS[i] = 0
Will display get, post, cookie variables (probably none here)
($HTTP_GET_VARS[], $HTTP_POST_VARS[] and $HTTP_COOKIE_VARS[] arrays):
Selected language ==>: en
Result ==> : Oh hello !