PHP
Echo 'Document:'. $ _ server ['Document_Root']. '
'; // Root Catalog, defined in Apache's configuration file: httpd.conf, such as: DocumentRoot "D: / Work / php_root" echo 'httphost : '. $ _ Server [' http_host '].'
'; // domain name, such as: localhost echo' phpself: '. $ _ Server [' php_self '].'
'; // From the root directory to The path of the file itself Echo 'script filename'. $ _ Server ['script_filename']. '
'; // Document ROOT PHPSELF ECHO 'Request URI'. $ _ Server ['Request_uri']. '
'; / / From the root directory, all URL strings are started, including the characters after the question mark echo 'Request method:'. $ _ Server ['Request_Method']. '
'; // Request Method Echo 'Name:'. $ _ Request ['name']. '
'; // Request parameter value
?>