mysqli_ping mysqli->ping Pings a server connection, or tries to reconnect if the connection has gone down Description Procedural style: boolmysqli_ping mysqlilink Object oriented style (method): mysqli boolping Checks whether the connection to the server is working. If it has gone down, and global option mysqli.reconnect is enabled an automatic reconnection is attempted. This function can be used by clients that remain idle for a long while, to check whether the server has closed the connection and reconnect if necessary. &reftitle.returnvalues; &return.success; &reftitle.examples; Object oriented style ping()) { printf ("Our connection is ok!\n"); } else { printf ("Error: %s\n", $mysqli->error); } /* close connection */ $mysqli->close(); ?> ]]> Procedural style ]]> &example.outputs;