Program code
<? Php
Echo "<br/> ";
Echo dirname (_ FILE __);
Echo '<BR/> ********************************** * *************************** <BR/> ';
Echo ** php server variable: $ _ SERVER ';
Echo '<BR/> ********************************** * *************************** <BR/> ';
Echo
'<BR/> $ _ SERVER [/'php _ SELF/'] = '. $ _ SERVER ['php _ SELF']
. '// File Name of the script being executed, which is related to document root. '
. '<BR/> $ _ SERVER [/'argv/'] = '. $ _ SERVER ['argv']
. '// Parameters passed to the script. '
. '<Br/> $ _ server [/'argc/'] = '. $ _ server ['argc']
. '// Contains the number of command line parameters passed to the Program (if running in command line mode ). '
. '<Br/> $ _ server [/'Gateway _ interface/'] = '. $ _ server ['Gateway _ interface']
. '// The CGI standard version used by the server. For example, CGI/1.1. '
. '<Br/> $ _ server [/'server _ name/'] = '. $ _ server ['server _ name']
. '// The Name Of The server host where the script is currently running. '
. '<Br/> $ _ server [/'server _ software/'] = '. $ _ server ['server _ soft']
. '// The string identified by the server, which is provided in the header of the Response Request. '
. '<Br/> $ _ server [/'server _ protocol/'] = '. $ _ server ['server _ Protocol']
. '// The name and version of the communication protocol on the request page. For example, HTTP/1.0. '
. '<BR/> $ _ SERVER [/'request _ METHOD/'] = '. $ _ SERVER ['request _ method']
. '// Request Method for accessing the page. For example, GET, HEAD, POST, and PUT .. '
. '<BR/> $ _ SERVER [/'query _ STRING/'] = '. $ _ SERVER ['query _ string']
. '// Query string. '
. '<BR/> $ _ SERVER [/'document _ ROOT/'] = '. $ _ SERVER ['document _ root']
. '// The root directory of the file where the script is currently running. Defined in the server configuration file. '
. '<BR/> $ _ SERVER [/'HTTP _ ACCEPT/'] = '. $ _ SERVER ['HTTP _ ACCEPT']
. '// Accept of the current request: Content in the header. '
. '<BR/> $ _ SERVER [/'HTTP _ ACCEPT_CHARSET/'] = '. $ _ SERVER ['HTTP _ ACCEPT_CHARSET']
. '// The accept-charset of the current request: the content in the header. Example: iso-8859-1, *, UTF-8. '
. '<Br/> $ _ server [/'HTTP _ accept_encoding/'] = '. $ _ server ['HTTP _ accept_encoding']
. '// The accept-encoding of the current request: the content in the header. For example, Gzip. '
. '<Br/> $ _ server [/'HTTP _ accept_language/'] = '. $ _ server ['HTTP _ accept_language']
. '// The accept-language of the current request: Content in the header. For example, en. '
. '<Br/> $ _ server [/'HTTP _ connection/'] = '. $ _ server ['HTTP _ connection']
. '// Connection of the current request: Content in the header. For example, keep-alive. '
. '<Br/> $ _ server [/'HTTP _ host/'] = '. $ _ server ['HTTP _ host']
. '// Host of the current request: Content in the header. '
. '<Br/> $ _ server [/'HTTP _ Referer/'] = '. $ _ server ['HTTP _ referer']
. '// URL of the previous page linked to the current page. '
. '<Br/> $ _ server [/'HTTP _ user_agent/'] = '. $ _ server ['HTTP _ user_agent']
. '// User_agent of the current request: Content in the header. '
. '<Br/> $ _ server [/'remote _ ADDR/'] = '. $ _ server ['remote _ ADDR']
. '// Browsing the IP address of the user on the current page. '
. '<Br/> $ _ server [/'remote _ host/'] = '. $ _ server ['remote _ host']
. '// The Host Name of the user browsing the current page. '
. '<Br/> $ _ server [/'remote _ port/'] = '. $ _ server ['remote _ port']
. '// The port used by the user to connect to the server. '
. '<Br/> $ _ server [/'script _ filename/'] = '. $ _ server ['script _ filename']
. '// The absolute path name of the currently executed script. '
. '<Br/> $ _ server [=/'server _ admin/'] = '. $ _ server ['server _ admin']
. '// Administrator information. '
. '<Br/> $ _ server [/'server _ port/'] = '. $ _ server ['server _ port']
. '// The port used by the server. '
. '<Br/> $ _ server [/'server _ signature/'] = '. $ _ server ['server _ signature']
. '// A string containing the server version and virtual host name. '
. '<Br/> $ _ server [/'path _ translated/'] = '. $ _ server ['path _ translated']
. '// The basic path of the file system (not the document root directory) where the current script is located. '
. '<Br/> $ _ server [/'script _ name/'] = '. $ _ server ['script _ name']
. '// Path containing the current script. This is useful when the page needs to point to itself. '
. '<Br/> $ _ server [/'request _ uri/'] '. $ _ server ['request _ URI']
. '// URI required to access this page. For example,/index.html. '
. '<Br/> $ _ server [/'php _ auth_user/'] = '. $ _ server ['php _ auth_user']
. '// When PHP runs in the Apache module mode and uses the HTTP authentication function, this variable is the user name entered by the user. '
. '<Br/> $ _ server [/'php _ auth_pw/'] = '. $ _ server ['php _ auth_pw']
. '// When PHP runs in the Apache module mode and uses the HTTP authentication function, this variable is the password entered by the user. '
. '<Br/> $ _ server [/'auth _ type/'] = '. $ _ server ['auth _ type']
. '// When PHP runs in the Apache module mode and uses the HTTP authentication function, this variable is the authentication type. '
;
?>