#25297 [WFx]: mysql_ping result
| From: | pulstar at ig dot com dot br | Date: | Sat, 30 Aug 2003 14:31:10 +0000 |
| Subject: | #25297 [WFx]: mysql_ping result | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-46947@lists.php.net to get a copy of this message | ||
ID: 25297
User updated by: pulstar at ig dot com dot br
Reported By: pulstar at ig dot com dot br
Status: Wont fix
Bug Type: Feature/Change Request
Operating System: Linux Debian
PHP Version: 4.3.3
New Comment:
Okay, I understand. But, what about a new ping and traceroute
functions? :-)
Previous Comments:
------------------------------------------------------------------------
[2003-08-30 01:08:34] georg@php.net
PHP's function mysql_ping uses the mysqli api function mysql_ping
which doesn't support this functionality.
mysqling doesn't work like the ping command, it checks if the
connections is alive and if not it tries to reconnect.
------------------------------------------------------------------------
[2003-08-28 11:22:32] pulstar at ig dot com dot br
Description:
------------
The mysql_ping() function could not return the response time of the
database server (or the ping time of its host) instead of just return
TRUE? This could be useful for test if a connection is slow or the
server is remote and user of not compression (I don't know if this
could work anyway). Well, PHP could aslo have functions for ping and
traceroute, to check if servers are up before attempt to connect on
them with mysql_connect(), fsockopen(), file(), etc. :-)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25297&edit=1