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--

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

Reply via email to