RE: [PHP] How can I get IP of ppp0?
| From: | Dan Anderson | Date: | Fri, 05 Sep 2003 15:31:14 +0000 |
| Subject: | RE: [PHP] How can I get IP of ppp0? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161772@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]
Well, you can (if I'm not mistaken) create PHP modules using C++. You
could also create shell scripts you could exec(). PHP isn't really
meant to be a server control though. So anything you do should be
really beefy security. (i.e. make sure any idiot can't just go to your
web site, pass in a get, and change the settings of your ethernet. :-D
)
-Dan