mysql_get_server_info() function in PHP
What is mysql_get_server_info() function in PHP?
How does mysql_get_server_info() works?
Explanation
The
mysql_get_server_info() function gets information about the MySQL server.
Syntaxstring mysql_get_server_info ( [resource link_identifier])
Returns a string describing the MySQL server information or FALSE on failure.
mysql_get_server_info() returns the MySQL server version used by connection link_identifier. If link_identifier is omitted, the last opened connection will be used.
Example
<?php //print MySQL server information printf("MySQL server version: %sn", mysql_get_server_info()); ?> |
RESULT:
MySQL server version: 4.0.1-alphaSee also: