note 77494 added to function.mysql-ping
| From: | miro dot dietiker at md-systems dot ch | Date: | Fri, 31 Aug 2007 18:32:24 +0000 |
| Subject: | note 77494 added to function.mysql-ping | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129946@lists.php.net to get a copy of this message | ||
When checking if a $resource works...
be prepared that mysql_ping returns NULL as long as $resource is no correct mysql resource.
<?php
$resource =NULL;
var_dump = @mysql_ping($resource);
# showing NULL
?>
This could be used to decide of a current $resource is a mysql or a mysqli connection when nothing
else is available to do that...
----
Server IP: 212.124.37.9
Probable Submitter: 195.141.164.46
----
Manual Page -- http://www.php.net/manual/en/function.mysql-ping.php
Edit -- https://master.php.net/note/edit/77494
Del: integrated -- https://master.php.net/note/delete/77494/integrated
Del: useless -- https://master.php.net/note/delete/77494/useless
Del: bad code -- https://master.php.net/note/delete/77494/bad+code
Del: spam -- https://master.php.net/note/delete/77494/spam
Del: non-english -- https://master.php.net/note/delete/77494/non-english
Del: in docs -- https://master.php.net/note/delete/77494/in+docs
Del: other reasons-- https://master.php.net/note/delete/77494
Reject -- https://master.php.net/note/reject/77494
Search -- https://master.php.net/manage/user-notes.php