Bug #17400: getting ip for eth0

From: Date: Fri, 24 May 2002 00:29:51 +0000
Subject: Bug #17400: getting ip for eth0
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8361@lists.php.net to get a copy of this message
From:             e@arix.com
Operating system: 
PHP version:      4.2.1
PHP Bug Type:     *Network Functions
Bug description:  getting ip for eth0

I'd like to request a function to retrieve the IP address(es) of a given
network interface... something that would let me:

  $ip = ifaddr("eth0");

maybe even something more general like:

  $info = ifconfig("eth0")

echo $info["HWAddr"], $info["Mask"];
echo $info["RX-packets"], $info["RX-errors"],

etc.
-- 
Edit bug report at http://bugs.php.net/?id=17400&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17400&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17400&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17400&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17400&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17400&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17400&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17400&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17400&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17400&r=globals



Thread (12 messages)

« previous php.bugs (#8361) next »