PHP3 Glimpse Search

You may use a ';' (semi-colon) between expressions to represent a logical "AND" while a ',' (comma) represents an "OR". So, to search for APPLE and ORANGE, use "APPLE;ORANGE". You may also use full regular expressions in the search field.
Search for:
Case Sensitive Search 
Match Whole words only
Approximate Search    

Glimpse Search Results

Search expression:

SORRY - Search index is currently being rebuilt, please try again in a few minutes.

"; exit; } if(isset($words) && $words) { $words="-w"; } else { $words=""; } if(isset($icase) && $icase) { $caseopt=""; $icase="1"; } else { $caseopt="-i"; $icase=""; } if(isset($fuzzy) && $fuzzy) { $fuzzy="-2"; } else { $fuzzy=""; } exec("$glimpse -c $caseopt $words $fuzzy -y -H $gdir '$pattern' | /usr/bin/sort -r -t: -n -k 2,2",&$result); $num = count($result); if($num==0) { echo "

No matches found!

"; } else { ?>

Results - out of

$text  file size: $size  modified: $mtime  matches: $cnt\n"; echo "
"; exec("$glimpse $icase $words $fuzzy -y -L0:0:1 -q -F '$filepat' -H $gdir '$pattern'",&$context); $pos = ereg("@",$context); unset($context); $pos = substr($pos,1,strlen($pos)); $pos = intval(ereg_replace("{.*","",$pos)); if($pos > ftell($fp)) { fseek($fp,$pos-1); } while(!feof($fp) && $j<240) { $text = fgetss($fp,256); $j+=strlen($text); echo HtmlSpecialChars($text); } fclose($fp); echo "

\n"; } $i++; } ?>