using exec() or shell_exec() to execute ipfw

G

Guest

Guest
Dear sirs.
I'm using mod_php4 on freebsd 4.6.
i want to execute the following command but it is not working.
shell_exec('ipfw add 100 pass ip from any to any');
the command works fine in the console but from php it is not working
as
shell_exec('ls -la); works fine from within php.
do any body knows why?
is there any specifice configuration for php to allow executing such programs ?
 
Check yours SET's, maybe PHP can't find ipfw....
For 'ls' path set as default try copy ipfw in ./bin

I know what some programm not working without path set..... :idea:

But who know, maybe i wrong....
 
Back
Top