Naar
boven

Zoekwoord ranking Google


Please enter keyword and website.‘;
break;
}
include (‘rank/clsGoogle.php’);
$google = &New google;
$nr=$_POST[nr];
$k=0;
echo “


Zoekwoord:$_POST[keyword] en website:$_POST[website]
“;
echo ‘

‘;
for ($j=0;$j<$nr;$j++) { $start=$j*100; /*$url_page="http://www.google.".$_POST[as_gdomain]."/ie?q=".urlencode($_POST[keyword])."&num=100&hl=en&lr=".$_POST[lr]."&as_qdr=all&start=".$start."&sa=N&as_ft=".$_POST[as_ft]."&as_filetype=".$_POST[as_filetype]."";*/ $url_page="http://www.google.".$_POST[as_gdomain]."/ie?q=".urlencode($_POST[keyword])."&num=100&lr=".$_POST[lr]."&as_ft=".$_POST[as_ft]."&as_filetype=".$_POST[as_filetype]."&as_qdr=".$_POST[as_qdr]."all&as_occt=".$_POST[as_occt]."any&as_dt=".$_POST[as_dt]."&as_sitesearch=".$_POST[as_sitesearch]."&safe=".$_POST[safe]."&start=".$start."&filter=0"; //echo $url_page; $user_agent = "Mozilla/4.0"; $string = $google->curl_string($url_page,$user_agent);
//echo $string;
$string=$google->remove_header($string);
//echo $string;

for($i=1;$i<=100;$i++) { $k++; $rezultat=$google->get_values($string,$_POST[website]);
$url=$google->get_url($rezultat);
$title=$google->get_title($rezultat,$url);
$yes=$google->is_in_url($url,$_POST[website]);
if($yes==1)
{
echo ‘

‘;
$results++;
}
}

}
echo ‘

Positie Pagina titel Url
‘.$k.’ ‘.$title.’ ‘.substr($url,0,100).”;if(strlen($url)>100) echo ‘…’;echo ‘

‘;
echo “

$results resultaat voor zoekwoord $_POST[keyword] en website $_POST[website]
“;
break;
}
}
include ‘rank/form.php’;

?>