note 81814 added to function.mysql-ping
| From: | (ScottThompson) | Date: | Fri, 14 Mar 2008 11:50:08 +0000 |
| Subject: | note 81814 added to function.mysql-ping | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137053@lists.php.net to get a copy of this message | ||
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
----
Server IP: 87.124.64.96
Probable Submitter: 212.139.67.154
----
Manual Page -- http://www.php.net/manual/en/function.mysql-ping.php
Edit -- https://master.php.net/note/edit/81814
Del: integrated -- https://master.php.net/note/delete/81814/integrated
Del: useless -- https://master.php.net/note/delete/81814/useless
Del: bad code -- https://master.php.net/note/delete/81814/bad+code
Del: spam -- https://master.php.net/note/delete/81814/spam
Del: non-english -- https://master.php.net/note/delete/81814/non-english
Del: in docs -- https://master.php.net/note/delete/81814/in+docs
Del: other reasons-- https://master.php.net/note/delete/81814
Reject -- https://master.php.net/note/reject/81814
Search -- https://master.php.net/manage/user-notes.php