The mysqli_get_client_stats() function returns statistics about client per-process.
PHP mysqli_get_client_stats() Function has the following syntax.
mysqli_get_client_stats();
Return stats about client per-process.
Get statistics about client per-process
<?php//from w w w .jav a 2 s.c o m
$con=mysqli_connect("localhost","my_user","my_password","my_db");
if (mysqli_connect_errno($con)){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
print_r(mysqli_get_client_stats());
mysqli_close($con);
?>