Hi shyma,
You can reply this thread - Don't need to create new thread like you did here.
http://www.linuxforums.org/forum/lin...ction-2-a.html
[quote]
i try this code but i failed also
<?php
$output = shell_exec('/sbin/iptables -L');
echo "<pre>$output</pre>";
?>
thanks for help.
[\quote]
Are you trying to run php from web browser?
anyway first check that code runs from command line or not.
if it's not running from command line post it's output as well as post the output of command
whereis iptables