Php advanced variables
Error_reporting (0 );
Echo 'system type and version number: '. php_uname ().'
';
Echo 'system type: '. php_uname ('s'). 'or'. PHP_ OS .'
';
Echo 'system type version number: '. php_uname ('r ').'
';
Echo 'php running mode: '. php_sapi_name ().'
';
Echo 'current process username: '. Get_Current_User ().'
';
Echo 'php version: '. PHP_VERSION .'
';
Echo 'zend version: '. Zend_Version ().'
';
Echo 'php installation path: '. DEFAULT_INCLUDE_PATH .'
';
Echo 'absolute path of the current FILE: '. _ FILE __.'
';
Echo 'host value in HTTP request: '. $ _ SERVER ['http _ host'].'
';
Echo 'server IP: '. GetHostByName ($ _ SERVER ['server _ name']).'
';
Echo 'server IP address that receives the request: '. $ _ SERVER ['server _ ADDR'].'
'; # Sometimes it cannot be obtained, and GetHostByName ($ _ SERVER ['server _ name']) is more reliable;
Echo 'Client IP: '. $ _ SERVER ['remote _ ADDR'].'
';
Echo 'server interpretation engine: '. $ _ SERVER ['server _ soft'].'
';
Echo 'server CPU count: '. $ _ SERVER ['processop _ IDENTIFIER'].'
';
Echo 'server system directory: '. $ _ SERVER ['systemroot'].'
';
Echo 'server domain NAME: '. $ _ SERVER ['server _ name'].'
'; # $ _ SERVER ['http _ host'] is recommended.
Echo 'user domain name: '. $ _ SERVER ['userdomain'].'
';
Echo 'server language: '. $ _ SERVER ['http _ ACCEPT_LANGUAGE'].'
';
Echo 'server web PORT: '. $ _ SERVER ['server _ port'].'
';
?>
The result is as follows: