Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP mysqli_ping() Function

PHP mysqli_ping() Function

PHP MySQLi Reference Manual PHP MySQLi Reference Manual

Check the server connection:




Definition and Usage

The mysqli_ping() function performs a server connection, and attempts to reconnect if the connection has been dropped.


Syntax

mysqli_ping(

connection

)

;

Parameters Description
connection Required. Specifies the MySQL connection to use.

Technical Details

Return Value: Returns TRUE on success, FALSE on failure.
PHP Version: 5+

PHP MySQLi Reference Manual PHP MySQLi Reference Manual