I can't execute pf commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux