i want to run a shell script thru php.
i hav tried using exec() , system() and passthru() functions, but neither worked for me.
actually the shell scripts that echoes something worked fine.
i want to run a script that executes a command, lets say something like
bash>> ipchains -A input -p TCP -s 0.0.0.0/0 -d 192.168.1.2 www -j ACCEPT
when i run it thru a shell script only it works fine, but when a i pass the scripts name in a php function, it gives error something like this
"the document contains no data"
ne has a clue??
may be iam mistaking in the syntax
can anyone gimme any example of passthru()
or exec() funtion..
dany