From 2687924d1bb9cfcec8a24737e31d1fbf9d276db7 Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Sat, 10 Oct 2015 07:04:59 +0000 Subject: [PATCH] Not creating the tweets.txt.gz file anymore --- www/grep.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/grep.php b/www/grep.php index 7895df9..f5fbd2e 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.gz | grep -Fhi $QUERY", $array); +exec("gunzip -c tweets.txt | grep -Fhi $QUERY", $array); $data = json_encode($array); echo $_GET['jsoncallback'] . '(' . $data . ');'; ?>