Get stats about client per-process in PHP

Description

The following code shows how to get stats about client per-process.

Example


  /* ww  w  . j  a  v a 2s . c  o m*/
<?php
     $con=mysqli_connect("localhost","root","","test");
     // Check connection
     if (mysqli_connect_errno()){
        echo "Failed to connect to MySQL: " . mysqli_connect_error();
     }
   
     print_r(mysqli_get_client_stats());
    
     mysqli_close($con);
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    MySQL »




MySQLi
MySQLi Object Oriented