php-general Digest 2 Feb 2013 04:40:53 -0000 Issue 8109
Topics (messages 320136 through 320142):
how to calculate how much data does each ip address use ?
320136 by: Bulent Malik
320137 by: Sean Greenslade
320139 by: Bulent Malik
320140 by: Sean Greenslade
320141 by: Mike Mackintosh
Re: Complex MySQL query for lowest price
320138 by: Angela Barone
Integer
320142 by: Ron Piggott
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
This task is not really suited for php. I would suggest looking into Ntop.
It does exactly what you described.
On Feb 1, 2013 9:40 AM, "Bulent Malik" <bma...@ihlas.net.tr> wrote:
> 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
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
>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 ?
--- End Message ---
--- Begin Message ---
On Feb 1, 2013 10:25 AM, "Bulent Malik" <bma...@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
>
Read the man pages. There are sql export options that you can specify on
run.
--- End Message ---
--- Begin Message ---
-------- Original message --------
From: Sean Greenslade <zootboys...@gmail.com>
Date:
To: Bulent Malik <bma...@ihlas.net.tr>
Cc: php-gene...@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" <bma...@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.
--- End Message ---
--- Begin Message ---
Thank you for everyone's input. Someone suggested the MySQL list, so I
posted my question there and got the answer I needed.
Regards,
Angela
--- End Message ---
--- Begin Message ---
In the following the “2.” means a moderator response and “25” is the account #
of the moderator.
<?php
$author = 2.0000000000000000000000025
?>
How can I get the 25 by itself?
- I want to drop the “2.” and remove all the zero’s
Would it be best to turn this into a STRING?
Any suggestions?
Ron Piggott
www.TheVerseOfTheDay.info
--- End Message ---