User Tools

Site Tools


globalserver

$_SERVER

Example content of the $_SERVER superglobal in PHP.

Array
(
    [CONTENT_LENGTH] => 160
    [CONTENT_TYPE] => application/x-www-form-urlencoded
    [DOCUMENT_ROOT] => /var/www/splitbrain
    [HTTP_ACCEPT] => 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] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
    [HTTP_ACCEPT_ENCODING] => gzip,deflate
    [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
    [HTTP_CACHE_CONTROL] => max-age=0
    [HTTP_CONNECTION] => keep-alive
    [HTTP_COOKIE] => PHPSESSID=15c8bd40725604ab5d80232f24c6e2e6
    [HTTP_HOST] => splitbrain.my.home
    [HTTP_KEEP_ALIVE] => 300
    [HTTP_REFERER] => http://splitbrain.my.home/dokuwiki/wiki:sandbox?rev=&do=edit
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614 Firefox/0.9
    [PATH] => /bin:/usr/bin:/sbin:/usr/sbin
    [REDIRECT_REDIRECT_STATUS] => 200
    [REDIRECT_REDIRECT_UNIQUE_ID] => QOg1NsCoAQoAADuAPMc
    [REDIRECT_STATUS] => 200
    [REDIRECT_UNIQUE_ID] => QOg1NsCoAQoAADuAPMc
    [REDIRECT_URL] => /dokuwiki/index.php
    [REMOTE_ADDR] => 192.168.1.15
    [REMOTE_PORT] => 1107
    [SCRIPT_FILENAME] => /var/www/splitbrain/dokuwiki/doku.php
    [SERVER_ADDR] => 192.168.1.10
    [SERVER_ADMIN] => andi@splitbrain.org
    [SERVER_NAME] => splitbrain.my.home
    [SERVER_PORT] => 80
    [SERVER_SIGNATURE] => 
    [SERVER_SOFTWARE] => Apache/1.3.29 (Debian GNU/Linux) PHP/4.3.4
    [UNIQUE_ID] => QOg1NsCoAQoAADuAPMc
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => POST
    [QUERY_STRING] => 
    [REQUEST_URI] => /dokuwiki/
    [SCRIPT_NAME] => /dokuwiki/doku.php
    [PATH_TRANSLATED] => /var/www/splitbrain/dokuwiki/doku.php
    [PHP_SELF] => /dokuwiki/doku.php
    [argv] => Array
        (
        )

    [argc] => 0
)
globalserver.txt · Last modified: 2006/11/08 10:58 by ChrisS