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

2013-02-05 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 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.

I could not see any sql options on  the man file of ntop.
Where is it? 




--
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 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 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



[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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] I can't execute pf commands

2011-07-28 Thread Bulent Malik
 


 
 >> did you try it in shell? or just You tried it in PHP? 
 
Yeah, I tried it on shell and it works on it. Also if I execute it as
command line, it works  ;
 
php test.php 
 
But when I try it on www ( internet explorer, firefox, chrome ..)  it
doesn't work.
 
  


[PHP] I can't execute pf commands

2011-07-28 Thread Bulent Malik
Hi

I use php5.3 on freebsd

I also use pf ( packet filter) on it.

I need to execute pfctl in php script.  But I couldn't execute . I don't get
any errors about that.

Shell commands is allowed in  php.ini My 

My script is below,


 shell_exec('pfctl -s nat');

exec('pfctl -s nat');


If I execute another command like this ; it works

shell_exec('ls -l /var/tmp') ;

What can the problem be ? 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php