Contents of $_SERVER
A sample dump of the $_SERVER array available to PHP code.
array(35) {
["DOCUMENT_ROOT"]=>
string(28) "/Library/WebServer/Documents"
["HTTP_ACCEPT"]=>
string(99) "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
["HTTP_ACCEPT_CHARSET"]=>
string(30) "ISO-8859-1,utf-8;q=0.7,*;q=0.7"
["HTTP_ACCEPT_ENCODING"]=>
string(12) "gzip,deflate"
["HTTP_ACCEPT_LANGUAGE"]=>
string(14) "en-us,en;q=0.5"
["HTTP_CONNECTION"]=>
string(10) "keep-alive"
["HTTP_COOKIE"]=>
string(120) "TinyMCE_mce_editor_0_height=349; TinyMCE_mce_editor_0_width=339; XARAYASID=bc3a3229e02f5de6bb514598fb3616de; fontSize=67"
["HTTP_HOST"]=>
string(9) "localhost"
["HTTP_KEEP_ALIVE"]=>
string(3) "300"
["HTTP_REFERER"]=>
string(34) "http://localhost/alumbiz/advertise"
["HTTP_USER_AGENT"]=>
string(92) "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7"
["PATH"]=>
string(71) "/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec:/System/Library/CoreServices"
["REDIRECT_SCRIPT_URI"]=>
string(31) "http://dads-imac.local/alumbiz/"
["REDIRECT_SCRIPT_URL"]=>
string(9) "/alumbiz/"
["REDIRECT_STATUS"]=>
string(3) "200"
["REDIRECT_URL"]=>
string(9) "/alumbiz/"
["REMOTE_ADDR"]=>
string(9) "127.0.0.1"
["REMOTE_PORT"]=>
string(5) "63971"
["SCRIPT_FILENAME"]=>
string(46) "/Library/WebServer/Documents/alumbiz/index.php"
["SCRIPT_URI"]=>
string(31) "http://dads-imac.local/alumbiz/"
["SCRIPT_URL"]=>
string(9) "/alumbiz/"
["SERVER_ADDR"]=>
string(9) "127.0.0.1"
["SERVER_ADMIN"]=>
string(18) "[no address given]"
["SERVER_NAME"]=>
string(15) "dads-imac.local"
["SERVER_PORT"]=>
string(2) "80"
["SERVER_SIGNATURE"]=>
string(67) "
Apache/1.3.33 Server at dads-imac.local Port 80
"
["SERVER_SOFTWARE"]=>
string(32) "Apache/1.3.33 (Darwin) PHP/4.4.1"
["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) "/alumbiz/"
["SCRIPT_NAME"]=>
string(18) "/alumbiz/index.php"
["PATH_TRANSLATED"]=>
string(46) "/Library/WebServer/Documents/alumbiz/index.php"
["PHP_SELF"]=>
string(18) "/alumbiz/index.php"
}
There are no comments attached to this item.



