すべてのサーバ変数

UNIQUE_ID: Y4qwqDsVDciaAXf824RE5wAAAAY
HTTPS: on
SSL_TLS_SNI: okumuralab.org
SSL_SERVER_S_DN_CN: okumuralab.org
SSL_SERVER_I_DN_C: US
SSL_SERVER_I_DN_O: Let's Encrypt
SSL_SERVER_I_DN_CN: R3
SSL_SERVER_SAN_DNS_0: okumuralab.org
SSL_VERSION_INTERFACE: mod_ssl/2.4.6
SSL_VERSION_LIBRARY: OpenSSL/1.0.2k-fips
SSL_PROTOCOL: TLSv1.2
SSL_SECURE_RENEG: true
SSL_COMPRESS_METHOD: NULL
SSL_CIPHER: ECDHE-RSA-AES256-GCM-SHA384
SSL_CIPHER_EXPORT: false
SSL_CIPHER_USEKEYSIZE: 256
SSL_CIPHER_ALGKEYSIZE: 256
SSL_CLIENT_VERIFY: NONE
SSL_SERVER_M_VERSION: 3
SSL_SERVER_M_SERIAL: 041B950219FB4B11969288C941CBD5B4B173
SSL_SERVER_V_START: Nov 12 19:25:24 2022 GMT
SSL_SERVER_V_END: Feb 10 19:25:23 2023 GMT
SSL_SERVER_S_DN: CN=okumuralab.org
SSL_SERVER_I_DN: CN=R3,O=Let's Encrypt,C=US
SSL_SERVER_A_KEY: rsaEncryption
SSL_SERVER_A_SIG: sha256WithRSAEncryption
SSL_SESSION_ID: 537d2045b4014e279ce7792250dd75a42c7a0ef583a46e6010b159e88d71cad1
SSL_SESSION_RESUMED: Initial
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: okumuralab.org
HTTP_CONNECTION: Keep-Alive
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE: 
SERVER_SOFTWARE: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.3.33
SERVER_NAME: okumuralab.org
SERVER_ADDR: 153.126.215.200
SERVER_PORT: 443
REMOTE_ADDR: 18.232.127.73
DOCUMENT_ROOT: /var/www/html
REQUEST_SCHEME: https
CONTEXT_PREFIX: /~okumura
CONTEXT_DOCUMENT_ROOT: /home/okumura/public_html
SERVER_ADMIN: okumura@okumuralab.org
SCRIPT_FILENAME: /home/okumura/public_html/php/allenv.php
REMOTE_PORT: 40082
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: 
REQUEST_URI: /~okumura/php/allenv.php
SCRIPT_NAME: /~okumura/php/allenv.php
PHP_SELF: /~okumura/php/allenv.php
REQUEST_TIME_FLOAT: 1670033576.5707
REQUEST_TIME: 1670033576

ソース

<pre>
<?php
  foreach ($_SERVER as $x => $y) {
    echo htmlspecialchars("$x: $y\n");
  }
?>
</pre>

奥村晴彦

Last modified: 2012-04-18 15:40:06