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
If you want the output from the command, then you probably want the popen() function instead:
http://php.net/manual/en/function.popen.php