getimagesize() function is used to obtain image size, type and other information. The
imagesx() function is used to get the width of the image. Theimagesy() function is used to get the height of the image.
Client IP related variables3. $_SERVER['LOCAL_ADDR'], $HTTP_SERVER_VARS['LOCAL_ADDR'], during the test, no results were obtained (test environment PHP5).
Get the system type and version number: php_uname() (Or: PHP_OS, for example: Windows NT)
Only get the system version number : php_uname('r') (Example: 5.1) Get PHP running mode: php_sapi_name() (PHP run mode: apache2 handler)
Get the pre-process user name: Get_Current_User()
Get the PHP version: PHP_VERSION
Get the Zend version: Zend_Version ()
Get the PHP installation path: DEFAULT_INCLUDE_PATH
Get the absolute path of the current file: __FILE__
Get server IP: GetHostByName($ _SERVER['SERVER_NAME'])
The server IP that accepts the request: Server server IP. VER ['REMOTE_ADDR']
Get the server interpretation engine: $_SERVER['SERVER_SOFTWARE']
Get the server CPU number: $_SERVER['PROCESSOR_IDENTIFIER']
Get the server system directory: $_SERVER['SystemRoot']
Get the server domain name: $_SERVER['SERVER_NAME'] (Recommended to use: $_SERVER["HTTP_HOST"])
Get the user domain name: $_SERVER['USERDOMAIN']
Get the server language: $_SERVER['HTTP_ACCEPT_LANGUAGE' ]
Get the server Web port: $ _SERVER['SERVER_PORT']
The above introduces how to obtain server IP and other detailed information in PHP, including aspects. I hope it will be helpful to friends who are interested in PHP tutorials.