Create a gist now

Instantly share code, notes, and snippets.

$_SERVER dump
Forgotten what the $_SERVER variable contains? See below:
$_SERVER["COMSPEC"] "C:\windows\system32\cmd.exe"
$_SERVER["CONTENT_LENGTH"] "43"
$_SERVER["CONTENT_TYPE"] "application/x-www-form-urlencoded; charset=UTF-8"
$_SERVER["CONTEXT_DOCUMENT_ROOT"] "C:/xampp/htdocs"
$_SERVER["CONTEXT_PREFIX"]
$_SERVER["DOCUMENT_ROOT"] "C:/xampp/htdocs"
$_SERVER["GATEWAY_INTERFACE"] "CGI/1.1"
$_SERVER["HTTP_ACCEPT"] "text/html,application/xhtml+xml,application/xml;q=0.9,*/ *;q=0.8"
$_SERVER["HTTP_ACCEPT_ENCODING"] "gzip, deflate"
$_SERVER["HTTP_ACCEPT_LANGUAGE"] "en-US,en;q=0.5"
$_SERVER["HTTP_CACHE_CONTROL"] "no-cache"
$_SERVER["HTTP_CONNECTION"] "keep-alive"
$_SERVER["HTTP_COOKIE"] "CMD_USER=8b71a92e603f4bdb6fa5dfddbc983b93; __atuvc=0%7C48%2C13%7C49%2C42%7C50%2C21%7C51%2C26%7C52; __atsa=sh=email%2Ccompact%2Cfacebook; mjx.menu=renderer%3AHTML-CSS%26%3Bwarned%3Atrue; PHPSESSID=fhdj25rk9j8h6vql3rq10dnub4"
$_SERVER["HTTP_HOST"] "127.0.0.1"
$_SERVER["HTTP_PRAGMA"] "no-cache"
$_SERVER["HTTP_REFERER"] "http://127.0.0.1/cmd/"
$_SERVER["HTTP_USER_AGENT"] "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0"
$_SERVER["MIBDIRS"] "C:/xampp/php/extras/mibs"
$_SERVER["MYSQL_HOME"] "\xampp\mysql\bin"
$_SERVER["OPENSSL_CONF"] "C:/xampp/apache/bin/openssl.cnf"
$_SERVER["PATH"] "C:\MYSELF\Programs\Python\;C:\MYSELF\Programs\Python\Scripts;/and so on, it's the windows %PATH%/"
$_SERVER["PATHEXT"] ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY"
$_SERVER["PHP_PEAR_SYSCONF_DIR"] "\xampp\php"
$_SERVER["PHP_SELF"] "/cmd/index.php"
$_SERVER["PHPRC"] "\xampp\php"
$_SERVER["QUERY_STRING"] "?bla"
$_SERVER["REMOTE_ADDR"] "127.0.0.1"
$_SERVER["REMOTE_PORT"] "49905"
$_SERVER["REQUEST_METHOD"] "POST"
$_SERVER["REQUEST_SCHEME"] "http"
$_SERVER["REQUEST_TIME"] "1410163095"
$_SERVER["REQUEST_TIME_FLOAT"] "1410163095.828"
$_SERVER["REQUEST_URI"] "/cmd/index.php"
$_SERVER["SCRIPT_FILENAME"] "C:/xampp/htdocs/cmd/index.php"
$_SERVER["SCRIPT_NAME"] "/cmd/index.php"
$_SERVER["SERVER_ADDR"] "127.0.0.1"
$_SERVER["SERVER_ADMIN"] "postmaster@localhost"
$_SERVER["SERVER_NAME"] "127.0.0.1"
$_SERVER["SERVER_PORT"] "80"
$_SERVER["SERVER_PROTOCOL"] "HTTP/1.1"
$_SERVER["SERVER_SIGNATURE"] "<address>Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.19 Server at 127.0.0.1 Port 80</address>"
$_SERVER["SERVER_SOFTWARE"] "Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.19"
$_SERVER["SystemRoot"] "C:\windows"
$_SERVER["TMP"] "\xampp\tmp"
$_SERVER["WINDIR"] "C:\windows"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment