グローバル変数の例
$_SERVER["HTTP_HOST"] -> kd-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 kd-tklab.na-inet.jp Port 443
$_SERVER["SERVER_SOFTWARE"] -> Apache/2.4.52 (Ubuntu)
$_SERVER["SERVER_NAME"] -> kd-tklab.na-inet.jp
$_SERVER["SERVER_ADDR"] -> 133.242.209.194
$_SERVER["SERVER_PORT"] -> 443
$_SERVER["REMOTE_HOST"] -> ec2-3-135-206-212.us-east-2.compute.amazonaws.com
$_SERVER["REMOTE_ADDR"] -> 3.135.206.212
$_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"] -> 52922
$_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"] -> 1733247889
←戻る