now i use shell_exec(), under linux OS, exec a system command, eg:iptables,the function is falid.Maybe iptables is only useing by ROOT ?then can do ?
It use by shell_exec(),it carry out because belong to by the orders of ROOT at eaches, the orders the authority unable to alter, So how is it it make let by shell_exec(), it carrying out this piece belongs to by the orders of ROOT? It is the similar this pieces of orders for example: Iptables
ʹÓÃshell_exec(),Ö´ÐÐLINUXÉÏÒ»¸öÊôÓÚROOTµÄÃüÁÇÒÕâ¸öÃüÁîµÄȨÏÞÎÞ·¨¸ü¸ÄΪÆäËûÓû§×飬ÄÇôÔõô×ö²ÅÄÜÈÃshell_exec(),Ö´ÐÐÕâ¸öÊôÓÚROOTµÄÃüÁîÄØ£¿ ÀàËÆÕâ¸öÃüÁî±ÈÈ磺Iptables