Run into this problem and make a note
Get system type and version number: Php_uname () (Example: Windows NT computer 5.1 build 2600)
Get system type only: Php_uname (' s ') (or: Php_os, example: Windows NT)
Get System version number only: Php_uname (' R ') (example: 5.1)
Get PHP Run as: Php_sapi_name () (PHP run Mode:apache2handler)
Get pre-process user name: Get_current_user ()
Get PHP version: Php_version
Get Zend Version: Zend_version ()
Get PHP Installation path: Default_include_path
Get the current file absolute path: __file__
Get the HOST value in the HTTP request: $_server["Http_host" (return value is domain name or IP)
Get Server Ip:gethostbyname ($_server[' server_name ')
Server IP to accept request: $_server["SERVER_ADDR"] (sometimes not available, recommended by: gethostbyname ($_server[' server_name '))
Get client IP: $_server[' REMOTE_ADDR ']
Get server Interpreter Engine: $_server[' Server_software ']
Get the number of server CPUs: $_server[' Processor_identifier ']
Get Server System directory: $_server[' SystemRoot ']
Get Server domain name: $_server[' server_name ' (Recommended: $_server["Http_host"])
Get user domain name: $_server[' UserDomain ']
Get server language: $_server[' http_accept_language ']
Get Server Web port: $_server[' Server_port ']
PHP Get server Details "Go"