Skip to content

Instantly share code, notes, and snippets.

@nnarhinen
Created December 18, 2010 16:40
Show Gist options
  • Save nnarhinen/746643 to your computer and use it in GitHub Desktop.
Save nnarhinen/746643 to your computer and use it in GitHub Desktop.
array(31) {
["SCRIPT_URL"]=>
string(9) "/test.php"
["SCRIPT_URI"]=>
string(31) "http://foo.domain.tld/test.php"
["HTTP_HOST"]=>
string(15) "foo.domain.tld"
["HTTP_CONNECTION"]=>
string(10) "keep-alive"
["HTTP_ACCEPT"]=>
string(90) "application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
["HTTP_USER_AGENT"]=>
string(128) "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10"
["HTTP_ACCEPT_ENCODING"]=>
string(17) "gzip,deflate,sdch"
["HTTP_ACCEPT_LANGUAGE"]=>
string(35) "fi-FI,fi;q=0.8,en-US;q=0.6,en;q=0.4"
["HTTP_ACCEPT_CHARSET"]=>
string(30) "ISO-8859-1,utf-8;q=0.7,*;q=0.3"
["HTTP_COOKIE"]=>
string(41) "Agavi=7cce9ea11beabc2a6ed28d2d41fadd43"
["HTTP_X_FORWARDED_PROTO"]=>
string(5) "https"
["HTTP_X_FORWARDED_FOR"]=>
string(12) "86.50.101.45"
["PATH"]=>
string(28) "/usr/local/bin:/usr/bin:/bin"
["SERVER_SIGNATURE"]=>
string(0) ""
["SERVER_SOFTWARE"]=>
string(91) "Apache/2.2.9 (Debian) PHP/5.2.13-0.dotdeb.1 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g"
["SERVER_NAME"]=>
string(15) "foo.domain.tld"
["SERVER_ADDR"]=>
string(12) "80.69.xx.xx"
["SERVER_PORT"]=>
string(2) "80"
["REMOTE_ADDR"]=>
string(13) "80.69.xx.xx"
["DOCUMENT_ROOT"]=>
string(26) "/home/foo/bar/pub"
["SERVER_ADMIN"]=>
string(28) "veikko.makinen@ecpalvelut.fi"
["SCRIPT_FILENAME"]=>
string(35) "/home/foo/bar/pub/test.php"
["REMOTE_PORT"]=>
string(5) "42541"
["GATEWAY_INTERFACE"]=>
string(7) "CGI/1.1"
["SERVER_PROTOCOL"]=>
string(8) "HTTP/1.1"
["REQUEST_METHOD"]=>
string(3) "GET"
["QUERY_STRING"]=>
string(0) ""
["REQUEST_URI"]=>
string(9) "/test.php"
["SCRIPT_NAME"]=>
string(9) "/test.php"
["PHP_SELF"]=>
string(9) "/test.php"
["REQUEST_TIME"]=>
int(1292690247)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment