Download this file

shell.php    32 lines (27 with data), 507 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
$splitter=chr(7).chr(8).chr(1).chr(2);
$query = recoll_connect();
$rescnt = $query->query("python",120,16);
if( false == $rescnt )
{
echo "error during query\n";
var_dump($rescnt);
return;
}
print "total results ".$rescnt."\n";
for ($i = 0; $i < $rescnt; $i++)
{
$res = $query->get_doc($i);
if( false == $res)
{
echo "error\n";
return;
}
$token=strtok($res,$splitter);
while ($token != false)
{
echo "$token\n";
$token = strtok($splitter);
}
}
?>