Search Results
mysql_ping (PHP 4 >= 4.3.0, PHP 5) mysql_ping — Ping a server connection or reconnect if there is no connection
For details, see Section 5.4.54, “mysql_options ()”. mysql_ping() 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.
For details, see Section 5.4.54, “mysql_options ()”. mysql_ping() 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.
Cet article explique comment utiliser la fonction ping() en PHP, en détaillant les syntaxes orientée objet et procédurale, ainsi que les valeurs possibles et les paramètres. Il fournit également des exemples pratiques d'utilisation de la fonction.
Aug 9, 2023 · As you can see, except for the fact that the mysql_ping packet is 5 bytes instead of DO 1; 's 9 bytes, the number of roundtrips (and consequently, network-induced latency) is exactly the same. The only extra cost you are paying with DO 1 as opposed to mysql_ping is the parsing of DO 1, which is trivial.
mysql_ping () vérifie si la connexion au serveur link_identifier fonctionne. Si elle est tombée, une reconnexion automatique est effectuée. Cette fonction est utile pour les scripts qui restent inactifs durant un long moment. Ils peuvent ainsi vérifier si le serveur a fermé la connexion, pour cause d'inactivité. Note:
People also ask
How do I enable MySQL Ping?
What is MySQL_Ping in PHP?
What does MySQL_Ping() do?
What does connection mean in MySQL?
mysql_ping () vérifie si la connexion au serveur link_identifier fonctionne. Si elle est tombée, une reconnexion automatique est effectuée. Cette fonction est utile pour les scripts qui restent inactifs durant un long moment. Ils peuvent ainsi vérifier si le serveur a fermé la connexion, pour cause d'inactivité. Note: La reconnexion automatique est désactivée par défaut depuis la ...
