List Info

Thread: note 77494 added to function.mysql-ping




note 77494 added to function.mysql-ping
user name
2007-08-31 13:32:24
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  -- h
ttps://master.php.net/note/delete/77494/integrated
Del: useless     -- http
s://master.php.net/note/delete/77494/useless
Del: bad code    -- htt
ps://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     -- http
s://master.php.net/note/delete/77494/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/77494
Reject      -- https://mast
er.php.net/note/reject/77494
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )