Php/環境変数一覧
提供: 初心者エンジニアの簡易メモ
print "PHP_SELF ".$_SERVER['PHP_SELF']."<br>"; print "argv ".$_SERVER['argv']."<br>"; print "argc ".$_SERVER['argc']."<br>"; print "GATEWAY_INTERFACE ".$_SERVER['GATEWAY_INTERFACE']."<br>"; print "SERVER_ADDR ".$_SERVER['SERVER_ADDR']."<br>"; print "SERVER_NAME ".$_SERVER['SERVER_NAME']."<br>"; print "SERVER_SOFTWARE ".$_SERVER['SERVER_SOFTWARE']."<br>"; print "SERVER_PROTOCOL ".$_SERVER['SERVER_PROTOCOL']."<br>"; print "REQUEST_METHOD ".$_SERVER['REQUEST_METHOD']."<br>"; print "REQUEST_TIME ".$_SERVER['REQUEST_TIME']."<br>"; print "QUERY_STRING ".$_SERVER['QUERY_STRING']."<br>"; print "DOCUMENT_ROOT ".$_SERVER['DOCUMENT_ROOT']."<br>"; print "HTTP_ACCEPT ".$_SERVER['HTTP_ACCEPT']."<br>"; print "HTTP_ACCEPT_CHARSET ".$_SERVER['HTTP_ACCEPT_CHARSET']."<br>"; print "HTTP_ACCEPT_ENCODING ".$_SERVER['HTTP_ACCEPT_ENCODING']."<br>"; print "HTTP_ACCEPT_LANGUAGE ".$_SERVER['HTTP_ACCEPT_LANGUAGE']."<br>"; print "HTTP_CONNECTION ".$_SERVER['HTTP_CONNECTION']."<br>"; print "HTTP_HOST ".$_SERVER['HTTP_HOST']."<br>"; print "HTTP_REFERER ".$_SERVER['HTTP_REFERER']."<br>"; print "HTTP_USER_AGENT ".$_SERVER['HTTP_USER_AGENT']."<br>"; print "HTTPS ".$_SERVER['HTTPS']."<br>"; print "REMOTE_ADDR ".$_SERVER['REMOTE_ADDR']."<br>"; print "REMOTE_HOST ".$_SERVER['REMOTE_HOST']."<br>"; print "REMOTE_PORT ".$_SERVER['REMOTE_PORT']."<br>"; print "SCRIPT_FILENAME ".$_SERVER['SCRIPT_FILENAME']."<br>"; print "SERVER_ADMIN ".$_SERVER['SERVER_ADMIN']."<br>"; print "SERVER_PORT ".$_SERVER['SERVER_PORT']."<br>"; print "SCRIPT_NAME ".$_SERVER['SCRIPT_NAME']."<br>"; print "REQUEST_URI ".$_SERVER['REQUEST_URI']."<br>"; print "PHP_AUTH_DIGEST ".$_SERVER['PHP_AUTH_DIGEST']."<br>";