Dump debug info into the log in PHP

Description

The following code shows how to dump debug info into the log.

Example


// w  ww .  ja  v  a 2  s .  co m
<?php

    $con=mysqli_connect("localhost","root","","test");
    // Check connection
    if (mysqli_connect_errno()){
      echo "Failed to connect to MySQL: " . mysqli_connect_error();
    }
    mysqli_dump_debug_info($con);
?>




















Home »
  PHP Tutorial »
    MySQL »




MySQLi
MySQLi Object Oriented