I have tried using this line of code:
$output = array(); exec('grep "some_keyword" some_file.txt',$output); echo "<pre>";print_r($output);echo "</pre>";
Upon looking for a keyword that I was sure was in the file, the output was:
Array (  =>  => )
Otherwise if the keyword was not in the file, it was:
Array ( )
Any suggestions on how do I fix this and why this is so?