![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||||||||
mysql_ping(PHP 4 >= 4.3.0, PHP 5) mysql_ping -- Ping a server connection or reconnect if there is no connectionDescriptionbool mysql_ping ( [resource link_identifier] )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 ValuesReturns TRUE if the connection to the server MySQL server is working, otherwise FALSE. Examples
Copyright © 1997 - 2007 by the PHP Documentation Group. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later. A copy of the Open Publication License is distributed with this manual, the latest version is presently available at http://www.opencontent.org/openpub/. Please see full copyright text at http://www.php.net/manual/en/copyright.php Original version of the above documentation is available at http://www.php.net/manual/en/ |
|