RE: [PHP] how to calculate how much data does each ip address use ?
| From: | Mike Mackintosh | Date: | Fri, 01 Feb 2013 15:38:10 +0000 |
| Subject: | RE: [PHP] how to calculate how much data does each ip address use ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-320141@lists.php.net to get a copy of this message | ||
-------- Original message --------
From: Sean Greenslade <zootboysean@gmail.com>
Date:
To: Bulent Malik <bmalik@ihlas.net.tr>
Cc: php-general@lists.php.net
Subject: RE: [PHP] how to calculate how much data does each ip address use ?
On Feb 1, 2013 10:25 AM, "Bulent Malik" <bmalik@ihlas.net.tr> wrote:
>
>
>
> >This task is not really suited for php. I would suggest looking into
Ntop.
> >It does exactly what you described.
>
> >> Hello
> >>
> >> I have a freebsdbox firewall . also I have some internet customers.
> >> I want to save how much data they used in a table ( such as mysql
> >> table ) for each ip address.
> >>Apache2, php5 and mysql5.5 work on the box.
> >>
> >> How can I do it ? any script or tool.
> >>
> >> Thanks
>
> How can i save in table using ntop ? is there any document ?
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Look at www.highonphp.com/regex-pattern-parsing-ifconfig
You can use exec to run ifconfig and parse the output using the above.