(PHP 4 >= 4.3.0, PHP 5)
mysql_ping -- Efectuar un chequeo de respuesta (ping) sobre una conexi贸n de servidor o reconectarse si no hay conexi贸nQhequea si est谩 activa o no la conexi贸n con el servidor. Si 茅sta se ha ca铆do, una reconexi贸n autom谩tica es intentada. Esta funci贸n puede ser usada por scripts que permanecen pasivos durante largos espacios de tiempo, para chequear si el servidor ha cerrado la conexi贸n, y reconectarse de ser necesario.
The MySQL connection. If the link identifier is not specified, the last link opened by mysql_connect() is assumed. If no such link is found, it will try to create one as if mysql_connect() was called with no arguments. If by chance no connection is found or established, an E_WARNING level warning is generated.
Devuelve TRUE si la conexi贸n con el servidor MySQL est谩 funcionando, o FALSE de lo contrario.