kinda working

This commit is contained in:
Kai Hendry
2012-07-14 20:29:25 +02:00
parent fb99a1c5f4
commit cd48fa4286
5 changed files with 70 additions and 39 deletions

View File

@@ -10,7 +10,7 @@ $QUERY=urldecode(escapeshellarg(urlencode($_GET['q'])));
//fwrite($fp, $_GET['q'] . " : " . $QUERY . "\n");
//fclose($fp);
exec("grep -hi $QUERY *.txt", $array);
exec("grep -hi $QUERY tweets.txt", $array);
$data = json_encode($array);
echo $_GET['jsoncallback'] . '(' . $data . ');';
?>