running iptable command as php programming
I want to run iptable script insert in my file at "/shell/ipt.sh"
i was this command to my visudo file
apache ALL=NOPASSWD: /sbin/iptables
how I can call my shell script to run via php web programming?
how I can get my output via web ?
I use the command below but my output status is Array .
$command = "/tmp/Fw";
exec ($command,$status );
any one can help me ?