グローバル変数の例
$_SERVER["HTTP_HOST"] -> cs-tklab.na-inet.jp
$_SERVER["HTTP_CONNECTION"] ->
$_SERVER["HTTP_REFERER"] ->
$_SERVER["HTTP_ACCEPT"] -> */*
$_SERVER["HTTP_USER_AGENT"] -> Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
$_SERVER["HTTP_ACCEPT_ENCODING"] -> gzip, br, zstd, deflate
$_SERVER["HTTP_ACCEPT_LANGUAGE"] ->
$_SERVER["HTTP_ACCEPT_CHARSET"] ->
$_SERVER["HTTP_COOKIE"] ->
$_SERVER["PATH"] -> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
$_SERVER["SERVER_SIGNATURE"] -> Apache/2.4.52 (Ubuntu) Server at cs-tklab.na-inet.jp Port 443
$_SERVER["SERVER_SOFTWARE"] -> Apache/2.4.52 (Ubuntu)
$_SERVER["SERVER_NAME"] -> cs-tklab.na-inet.jp
$_SERVER["SERVER_ADDR"] -> 133.242.209.194
$_SERVER["SERVER_PORT"] -> 443
$_SERVER["REMOTE_HOST"] -> ec2-3-135-200-121.us-east-2.compute.amazonaws.com
$_SERVER["REMOTE_ADDR"] -> 3.135.200.121
$_SERVER["DOCUMENT_ROOT"] -> /home/tkouya/wordpress
$_SERVER["SERVER_ADMIN"] -> tkouya@na-inet.jp
$_SERVER["SCRIPT_FILENAME"] -> /home/tkouya/public_html/semi/2010/php/global_variables.php
$_SERVER["REMOTE_PORT"] -> 7295
$_SERVER["GATEWAY_INTERFACE"] -> CGI/1.1
$_SERVER["SERVER_PROTOCOL"] -> HTTP/1.1
$_SERVER["REQUEST_METHOD"] -> GET
$_SERVER["QUERY_STRING"] ->
$_SERVER["REQUEST_URI"] -> /~tkouya/semi/2010/php/global_variables.php
$_SERVER["SCRIPT_NAME"] -> /~tkouya/semi/2010/php/global_variables.php
$_SERVER["PHP_SELF"] -> /~tkouya/semi/2010/php/global_variables.php
$_SERVER["REQUEST_TIME"] -> 1732264429
←戻る