网络实验室

 找回密码
 注册账户
查看: 1476|回复: 0

Google link popularity checker

[复制链接]
无心的棋子 发表于 2007-8-8 14:05:17 | 显示全部楼层 |阅读模式
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
  1. <?php
  2. $url = trim($_GET[urls]); //if from form replace $_GET with $_POST

  3. echo “<tr><th colspan = 3 align=center><font color=white><b>Google </b></font></th> </tr>
  4. <tr>
  5. <th>
  6. <font size = 2 face=verdana color=white>URL</font> </th>
  7. <th>
  8. <font size = 2 face=verdana color = white>Links</font> </th>
  9. <th>
  10. <font size = 2 face=verdana color=white>View</font> </th>
  11. </tr>”;

  12. if ($url != “”){

  13. $domain=$url

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

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

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

  25. }

  26. ?>
复制代码
您需要登录后才可以回帖 登录 | 注册账户

本版积分规则

黑屋|存档|手机|网络实验室 本站服务器由美国合租以及IDCLayer国际数据提供!!!

GMT+8, 2024-4-29 22:30 , Processed in 0.074839 second(s), 10 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表