diff --git a/www/grep.php b/www/grep.php index f5fbd2e..7895df9 100644 --- a/www/grep.php +++ b/www/grep.php @@ -10,7 +10,7 @@ $QUERY=escapeshellarg($_GET['q']); //fwrite($fp, $_GET['q'] . " : " . $QUERY . "\n"); //fclose($fp); -exec("gunzip -c tweets.txt | grep -Fhi $QUERY", $array); +exec("gunzip -c tweets.txt.gz | grep -Fhi $QUERY", $array); $data = json_encode($array); echo $_GET['jsoncallback'] . '(' . $data . ');'; ?>