note 22737 added to function.exec

From: Date: Thu, 27 Jun 2002 23:28:00 +0000
Subject: note 22737 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-32294@lists.php.net to get a copy of this message
I'm using mod_php4 on apache2 installed on freebsd 4.6. function traf_b($id){ $ipfw_ar = "add 100 pass ip from any to 192.168.1.100 via rl1 in "; $lastline = exec("/sbin/ipfw $ipfw_ar",$allout, $return);} I couldnt execute 'ipfw '. but executing 'ls -lo' or 'ps awx' works fine. What might be the problem. P.S i also used shell_exec,backtrick but the result was negative . /safe_mod is off -- http://www.php.net/manual/en/function.exec.php http://master.php.net/manage/user-notes.php?action=edit+22737 http://master.php.net/manage/user-notes.php?action=delete+22737 http://master.php.net/manage/user-notes.php?action=reject+22737

« previous php.notes (#32294) next »