mysql_get_host_info()
string mysql_get_host_info([connection])This function returns information on the host for the current connection to MySQL. You may give an identifier to retrieve information on a host for a different connection. Here is an example:
... $info = mysql_get_client_info( ); print "Connection Info: $info \n"; ...
Here are the results of this script when you run it on the host containing the server:
Connection Info: 127.0.0.1 via TCP/IP