mysql_get_server_info()
string mysql_get_server_info([connection])This function returns the MySQL server version for the current connection to MySQL. You may give an identifier to retrieve the server version for a different connection. Here is an example:
... $info = mysql_get_server_info( ); print "MySQL Server Version: $info \n"; ...
Here are the results of running this script:
MySQL Server Version: 4.1.1-alpha-standard