Req #52071 [NEW]: RFE: ping
| From: | php at richardneill dot org | Date: | Sun, 13 Jun 2010 00:28:39 +0000 |
| Subject: | Req #52071 [NEW]: RFE: ping | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-151404@lists.php.net to get a copy of this message | ||
From:
Operating system: Linux
PHP version: Irrelevant
Package: Network related
Bug Type: Feature/Change Request
Bug description:RFE: ping
Description:
------------
Surprisingly, PHP is missing the ability to ping another host (and check
it's
alive). So I'd like to make a request to add it. I'd suggest using
something
like fping rather than standard ping, as this is more script-friendly - for
example, fping can be made to return immediately as soon as it discovers
that
a given host is alive. For example:
fping -q -B1 www.php.net
I know that there is Net_Ping available via PEAR, but often PEAR extensions
aren't available on many hosting environments; likewise it's awkward to
package a PHP web-application when the PEAR extension isn't already
packaged
for the distro. Is ping suficiently fundamental to be considered core?
Test script:
---------------
This command should either exist in 2 forms, or have several options.
Typical use cases are:
1. Is machine X alive (and responding to Pings)
2. Can I do a DNS lookup + route to that machine
3. What is the packet loss fraction.
This is easy enough to do by using exec(), but it would be nice to have a
native function. Thanks.
--
Edit bug report at http://bugs.php.net/bug.php?id=52071&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52071&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52071&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52071&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52071&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52071&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52071&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52071&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52071&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52071&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52071&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52071&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52071&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52071&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52071&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52071&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52071&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52071&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52071&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52071&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52071&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52071&r=mysqlcfg