Veronica's code for the $_SERVER Array

This is what the $_SERVER array contains

Array
(
    [CONTEXT_DOCUMENT_ROOT] => /home/hutchinv/public_html
    [CONTEXT_PREFIX] => /~hutchinv
    [DOCUMENT_ROOT] => /var/www/html
    [GATEWAY_INTERFACE] => CGI/1.1
    [HTTPS] => on
    [HTTP_ACCEPT] => */*
    [HTTP_ACCEPT_ENCODING] => gzip, br, zstd, deflate
    [HTTP_HOST] => citw.lcc.edu
    [HTTP_USER_AGENT] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
    [HTTP_X_HTTPS] => 1
    [PATH] => /bin:/usr/bin
    [PHP_INI_SCAN_DIR] => /opt/cpanel/ea-php82/root/etc:/opt/cpanel/ea-php82/root/etc/php.d:.
    [QUERY_STRING] => 
    [REDIRECT_STATUS] => 200
    [REMOTE_ADDR] => 18.116.27.225
    [REMOTE_PORT] => 43925
    [REQUEST_METHOD] => GET
    [REQUEST_SCHEME] => https
    [REQUEST_URI] => /~hutchinv/citw185/examples/server_array_example.php
    [SCRIPT_FILENAME] => /home/hutchinv/public_html/citw185/examples/server_array_example.php
    [SCRIPT_NAME] => /~hutchinv/citw185/examples/server_array_example.php
    [SCRIPT_URI] => https://citw.lcc.edu/~hutchinv/citw185/examples/server_array_example.php
    [SCRIPT_URL] => /~hutchinv/citw185/examples/server_array_example.php
    [SERVER_ADDR] => 172.31.5.10
    [SERVER_ADMIN] => arseneac@star.lcc.edu
    [SERVER_NAME] => citw.lcc.edu
    [SERVER_PORT] => 443
    [SERVER_PROTOCOL] => HTTP/1.1
    [SERVER_SIGNATURE] => 
    [SERVER_SOFTWARE] => Apache
    [SSL_TLS_SNI] => citw.lcc.edu
    [TZ] => America/Detroit
    [UNIQUE_ID] => Z2gptm1-9wPzh6xLklF0bAAAAIg
    [PHP_SELF] => /~hutchinv/citw185/examples/server_array_example.php
    [REQUEST_TIME_FLOAT] => 1734879670.4465
    [REQUEST_TIME] => 1734879670
    [argv] => Array
        (
        )

    [argc] => 0
)

Your Browser is: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

 

CODE FOLLOWS

<?php
include('includes/header.php');

// code
error_reporting(E_ALL);    // set error reporting to all

echo('<h1>Veronica\'s code for the $_SERVER Array</h1>');

echo(
'<h2>This is what the $_SERVER array contains</h2>');


// code

echo('<pre>');

print_r($_SERVER);

echo(
'</pre>');

$browser $_SERVER['HTTP_USER_AGENT'];

echo(
"<p>Your Browser is: $browser</p>");

include(
'includes/footer.php');
?>