PHP mysqli_debug()Functions

PHP MySQLi 参考手册PHP MySQLi Reference Manual

Examples

Create a trace file in "/temp/client.trace" on the local machine:

<?php
mysqli_debug("d:t:o,/temp/client.trace");
?>

Definition and Usage

The mysqli_debug() function is used to perform debugging operations.

Note:To use this function, you must compile the MySQL client library to support debugging.


Syntax

mysqli_debug(message);

Parameters Description
message Required. A string representing the debugging operation to be performed.

Technical Details

Return Value: TRUE
PHP Version: 5+


PHP MySQLi 参考手册PHP MySQLi Reference Manual Other Extensions