4 2 1 42 11 -3 Thud
This is the way to do it. (7 words)
Here are all the _SERVER variables sent to the script:
USER | apache |
HOME | /var/www |
SCRIPT_NAME | /~bennet/php/leccode/l2/p3.php |
REQUEST_URI | /~bennet/php/leccode//l2/p3.php |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REMOTE_PORT | 1583 |
SCRIPT_FILENAME | /var/www/homes/bennet/php/leccode/l2/p3.php |
SERVER_ADMIN | root@localhost |
CONTEXT_DOCUMENT_ROOT | /var/www/html |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /var/www/html |
REMOTE_ADDR | 3.15.141.155 |
SERVER_PORT | 80 |
SERVER_ADDR | 10.27.0.23 |
SERVER_NAME | sandbox.mc.edu |
SERVER_SOFTWARE | Apache/2.4.62 (Fedora Linux) OpenSSL/3.2.2 mod_wsgi/5.0.0 Python/3.12 |
SERVER_SIGNATURE | |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_HOST | sandbox.mc.edu |
HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
UNIQUE_ID | Z0Jv0uhW3JVv_SRYdAWavAAAAIM |
FCGI_ROLE | RESPONDER |
PHP_SELF | /~bennet/php/leccode/l2/p3.php |
REQUEST_TIME_FLOAT | 1732407250.2343 |
REQUEST_TIME | 1732407250 |