Re: How can I get IP of ppp0?

From: Date: Fri, 05 Sep 2003 13:14:20 +0000
Subject: Re: How can I get IP of ppp0?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161757@lists.php.net to get a copy of this message
I would use something like this $ifconfMess = shell_exec("ifconfig tun0"); if(preg_match("/\d{2,3}(\.(\d){1,3}){3}/",$ifconfMess,$ip)) $tunip = $ip[0]; see ya ! On Fri, Sep 05, 2003 at 09:46:41AM -0300, Erick Okasaki wrote: > Hello List, > > How can I get IP Address from my connection ppp0 or ppp1 in Linux? What > 's the function? > > > thanks > Erick > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Maciek Ruckgaber Bielecki "An empty stomach is not a good political advisor." --Albert Einstein--

« previous php.general (#161757) next »