[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

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

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.

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.