mysql_get_host_info() returns a string describing the type of connection in use for the connection link_identifier, including the server host name. If link_identifier is omited, the last opened connection will be used.
mysql_get_host_info() was added in PHP 4.0.5.