Re: [PHP] Integer

2013-02-01 Thread tamouse mailing lists
On Fri, Feb 1, 2013 at 11:27 PM, tamouse mailing lists wrote: > On Fri, Feb 1, 2013 at 10:40 PM, Ron Piggott > wrote: >> In the following the “2.” means a moderator response and “25” is the account >> # of the moderator. >> >> > >> $author = 2.00025 >> >> ?> >> >> How can I g

Re: [PHP] Integer

2013-02-01 Thread Adam Richardson
On Fri, Feb 1, 2013 at 11:40 PM, Ron Piggott wrote: > 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? > I would recommend turning it into a string, splitting the string at the decimal, then scanning the second

Re: [PHP] Integer

2013-02-01 Thread tamouse mailing lists
On Fri, Feb 1, 2013 at 10:40 PM, Ron Piggott wrote: > In the following the “2.” means a moderator response and “25” is the account > # of the moderator. > > > $author = 2.00025 > > ?> > > How can I get the 25 by itself? > - I want to drop the “2.” and remove all the zero’s >

[PHP] Integer

2013-02-01 Thread Ron Piggott
In the following the “2.” means a moderator response and “25” is the account # of the moderator. 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

RE: [PHP] how to calculate how much data does each ip address use ?

2013-02-01 Thread Mike Mackintosh
Original message From: Sean Greenslade Date: To: Bulent Malik 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" wrote: > > > > >This task is not really suited for php. I w

RE: [PHP] how to calculate how much data does each ip address use ?

2013-02-01 Thread Sean Greenslade
On Feb 1, 2013 10:25 AM, "Bulent Malik" 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 th

RE: [PHP] how to calculate how much data does each ip address use ?

2013-02-01 Thread Bulent Malik
>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 addr

Re: [PHP] Complex MySQL query for lowest price

2013-02-01 Thread Angela Barone
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to calculate how much data does each ip address use ?

2013-02-01 Thread Sean Greenslade
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" 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 ( su

[PHP] how to calculate how much data does each ip address use ?

2013-02-01 Thread Bulent Malik
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 (htt