class ultimate{
var $minlength;
var $minoc;
function getUrl($url)
{
return file_get_contents($url);
}
//parse tags function (extracting title,description , keywords of the page)
function _parseTags($page) {
$page=strtolower($page);
$title = $description = $keywords = '';
if (preg_match('/
(.*)<\/title>/i',$page,$ar)) $title = $ar[1];
if (preg_match('/$title,
'description'=>$description,
'keywords'=>$keywords,
);
return $res;
} // _parseTags
//get text from html
function getOnlyText($text)
{
$text=strtolower($text);
$text=str_replace("\n\r"," ",$text);
$text=str_replace("\n"," ",$text);
$text=str_replace("\r"," ",$text);
//erasing scripts
$tmp=$this->my_preg_match_all('