|
mysql_pingPing a server connection or reconnect if there is no connection Warning
This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide. Alternatives to this function include:
Description
bool mysql_ping(resource
$link_identifier = NULL)Checks whether or not the connection to the server is working. If it has gone down, an automatic reconnection is attempted. This function can be used by scripts that remain idle for a long while, to check whether or not the server has closed the connection and reconnect if necessary.
Parameters
Return Values
Returns Examples
Example #1 A mysql_ping example
See Also
|