PHP mysqli_ping() Function
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