Fördefinierade variabler, $_SERVER

IP-adress till den som öppnade denna sidan: 34.226.244.70

I HTTP_USER_AGENT går det att utläsa vilken webbläsare som används: CCBot/2.0 (https://commoncrawl.org/faq/)

Allt innehåll i arrayen $_SERVER:

Array
(
    [HTTPS] => on
    [SSL_TLS_SNI] => arkiv.dbwebb.se
    [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
    [HTTP_ACCEPT_ENCODING] => br,gzip
    [HTTP_HOST] => arkiv.dbwebb.se
    [HTTP_CONNECTION] => Keep-Alive
    [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    [SERVER_SIGNATURE] => <address>Apache/2.4.10 (Debian) Server at arkiv.dbwebb.se Port 443</address>

    [SERVER_SOFTWARE] => Apache/2.4.10 (Debian)
    [SERVER_NAME] => arkiv.dbwebb.se
    [SERVER_ADDR] => 194.47.150.9
    [SERVER_PORT] => 443
    [REMOTE_ADDR] => 34.226.244.70
    [DOCUMENT_ROOT] => /home/mos/htdocs/arkiv.dbwebb.se/htdocs
    [REQUEST_SCHEME] => https
    [CONTEXT_PREFIX] => 
    [CONTEXT_DOCUMENT_ROOT] => /home/mos/htdocs/arkiv.dbwebb.se/htdocs
    [SERVER_ADMIN] => mos@uptime.dbwebb.se
    [SCRIPT_FILENAME] => /home/mos/htdocs/arkiv.dbwebb.se/htdocs/kod-exempel/guiden-php-20/predefined/server.php
    [REMOTE_PORT] => 58782
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /kod-exempel/guiden-php-20/predefined/server.php
    [SCRIPT_NAME] => /kod-exempel/guiden-php-20/predefined/server.php
    [PHP_SELF] => /kod-exempel/guiden-php-20/predefined/server.php
    [REQUEST_TIME_FLOAT] => 1582664891.574
    [REQUEST_TIME] => 1582664891
)

Unicorn Källkod