mysql_get_host_info([link_id])
This function returns a string describing the type of connection and server host name for the specified (link_id) or last opened MySQL connection (e.g. 'Localhost via UNIX socket').