棋子 发表于 2007-8-8 14:05:17

Google link popularity checker

Google link popularity checker



Are you looking for snipet or script how those link popularity site checker do that? Here is a snipet from my script which I use to check link popularity…

This snipet is the link popularity checker it self but you can make this script more powerful.

After uploading this script in your php enabled server, you can then check link popularity by typing www.yoursite.com/linkpo.php
<?php
$url = trim($_GET); //if from form replace $_GET with $_POST

echo “<tr><th colspan = 3 align=center><font color=white><b>Google </b></font></th> </tr>
<tr>
<th>
<font size = 2 face=verdana color=white>URL</font> </th>
<th>
<font size = 2 face=verdana color = white>Links</font> </th>
<th>
<font size = 2 face=verdana color=white>View</font> </th>
</tr>”;

if ($url != “”){

$domain=$url

$path=”http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=link%3A”.$domain;
$data = strtolower(strip_tags(implode(”", file($path))));
$data = substr($data, strpos($data, “of about”)+9, strlen($data));
$data = substr($data, 0, strpos($data, ” “));

if(eregi(”[[:alpha:]]”, $data)) {
$data = 0;
}

echo ” <tr>
<td> <font size = 2 face=verdana color=white> $domain </td>
<td> <font size = 2 face=verdana color=white> $data </td>
<td> <a href =’$path’>View</a></td> </tr>”;

}

?>
页: [1]
查看完整版本: Google link popularity checker