I\'m trying to run shell command like this from php:
ls -a | grep mydir
But php only uses the first command. Is there any way to force php to p
http://www.php.net/manual/en/function.proc-open.php
First open ls -a read the output, store it in a var, then open grep mydir write the output that you have stored from ls -a then read again the new output.
ls -a
grep mydir
L.E.: