The example in this article describes how PHP obtains information related to the server operating system. Share it with everyone for your reference, the details are as follows:
The following is the basic statement for PHP to obtain the current server information.
PHP program version:
ZEND version:
MYSQL support:
MySQL database continuous connection:
Maximum number of MySQL connections:
Server operating system:
Server information:
Maximum upload limit:
Maximum execution time:
Maximum memory occupied by script running:
Query the version of the currently connected MYSQL database php comes with the function
mysql_get_server_info()
Get the service
date_default_timezone_set (PRC); echo date("Y-m-d G:i:s");
The version of the MYSQL database php Bring your own The function mysql_get_server_info()
gets the server system time
date_default_timezone_set (PRC); echo date("Y-m-d G:i:s");
I hope this article will be helpful to everyone in PHP programming.
For more articles on how PHP can obtain information about the server operating system, please pay attention to the PHP Chinese website!