mysql_get_host_info()

It returns MySQL host info

Example

<?php
mysql_connect(“localhost”, “root”, “phpcode”) or die(mysql_error());
echo mysql_get_host_info();
?>

Output

Localhost via UNIX socket