RE: [PHP] How can I get IP of ppp0?

From: Date: Fri, 05 Sep 2003 12:56:10 +0000
Subject: RE: [PHP] How can I get IP of ppp0?
Groups: php.general 
Request: Send a blank email to php-general+get-161753@lists.php.net to get a copy of this message
[snip] How can I get IP Address from my connection ppp0 or ppp1 in Linux? What 's the function? [/snip] shootin' from the hip .... because I am looking for something like this as well. I would also like to be able to activate PPP...need some serial port control. Here are my thoughts on your question...from the hip and very much untested... Load ifconfig into a variable something like $strIfconfig = exec("ifconfig"); Then use regex to parse $strIfconfig for the info you need. Let me know what happens.

« previous php.general (#161753) next »