|
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[urls]); //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=”[url]http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=link%3A[/url]”.$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>”;
- }
- ?>
复制代码 |
|