PHP for more information about the current server version, Ip, etc.

1.

Server IP address $ _SERVER [ 'SERVER_ADDR'] 

server domain name $ _SERVER [ 'SERVER_NAME'] 

server port $ _SERVER [ 'SERVER_PORT'] 

Server version php_uname ( 's'). Php_uname ( 'r') 

server operating system php_uname () 

the PHP version PHP_VERSION 

get PHP installation path: DEFAULT_INCLUDE_PATH 

get the current absolute path of the file: __FILE__ 

get Http request Host value: $ _SERVER [ "HTTP_HOST"] 

get Zend version: Zend_Version () 

Laravel version $ laravel = app (); $ laravel :: vERSION 

PHP run php_sapi_name () 

server current time date ( "Ymd H: i: s") 

maximum upload limit get_cfg_var ( "upload_max_filesize") get_cfg_var ( "upload_max_filesize"):?? " impermissible"> 

maximum execution time get_cfg_var ( "max_execution_time ")."second";

The script runs occupy the maximum memory get_cfg_var ( "memory_limit") get_cfg_var ( "memory_limit"):? " None."

Get the server decipher engine: $ _SERVER [ 'SERVER_SOFTWARE'] 

Gets the number of server CPU: $ _SERVER [ 'PROCESSOR_IDENTIFIER' ] 

get the server system directory: $ _SERVER [ 'SystemRoot'] 

to obtain the server domain (hostname): $ _ SERVER [ 'SERVER_NAME '] (recommended: $ _ sERVER [ "HTTP_HOST" ]) 

Gets user domain names: $ _SERVER [' USERDOMAIN '] 

Gets server language: $ _SERVER [' HTTP_ACCEPT_LANGUAGE '] 

Gets server Web port: $ _SERVER [' SERVER_PORT '] 

acquisition request when the page name and version of the communication protocol: $ _SERVER [ 'SERVER_PROTOCOL']

 

Guess you like

Origin www.cnblogs.com/yangzailu/p/11752492.html