mysql_ping Ping a server connection or reconnect if there is no connection &mysql.alternative.note; mysqli_ping &reftitle.description; boolmysql_ping resourcelink_identifierNULL 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. Automatic reconnection is disabled by default in versions of MySQL >= 5.0.3. &reftitle.parameters; &mysql.linkid.description; &reftitle.returnvalues; Returns &true; if the connection to the server MySQL server is working, otherwise &false;. &reftitle.examples; A <function>mysql_ping</function> example ]]> &reftitle.seealso; mysql_thread_id mysql_list_processes