Arabic Auto Summarize Class



'; if ($dhandle = opendir($dir)) { while (false !== ($file = readdir($dhandle))) { if ($file != "." && $file != "..") { // get contents of a file into a string $fhandle = fopen($dir.$file, "r"); $contents = fread($fhandle, filesize($dir.$file)); fclose($fhandle); $summary = $obj->doRateSummarize($contents, $rate, $_GET['q']); echo "$file:
$summary
"; } } closedir($dhandle); } }else{ $file = $_GET['file']; $rate = $_GET['rate']; // get contents of a file into a string $fhandle = fopen($dir.$file, "r"); $contents = fread($fhandle, filesize($dir.$file)); fclose($fhandle); $highlighted = $obj->highlightRateSummary($contents, $rate, $_GET['q']); $metaKeywords = $obj->getMetaKeywords($contents, $rate); echo "$file:
$metaKeywords
$highlighted

Back"; } ?>