note 81814 deleted from function.mysql-ping by nlopess

From: Date: Fri, 14 Mar 2008 15:38:59 +0000
Subject: note 81814 deleted from function.mysql-ping by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-137067@lists.php.net to get a copy of this message
Note Submitter: VBAssassin (Scott Thompson) ---- This is such a useful function!!! I have shared hosting and recently i have found that now and again the connection to the server is dropped half way through script execution! When its dropped i just get error after error that the queries are failing. With the ping function you can check to see if a query failed due to syntax errors in the query OR if it was because their is no longer a connection to the database and so perform a reconnect. Very useful function :-) Kind regards, Scott

« previous php.notes (#137067) next »