|
Yahoo back link checker
Here is a very simple script which you can tweak or modify to make it more complicated. This script will check how many back link a certain site or domain have in yahoo.
Here is the sample output of the script www.tips1001.com/tools/yahoobl.php?url=tips1001.com
You can create a form instead and replace the $_GET[url] to $_POST[url] from the script.
Here is the code
- <?php
- $url=$_GET[url];
- if ($url == ""){
- echo "Site url is required";
- exit;
- }
- $domain=trim($url);
- $path ="http://search.yahoo.com/search?p=linkdomain%3A"
- .$domain."&ei=UTF-8&fr=fp-tab-web-t&cop=mss&tab=";
- $data = strtolower(implode(" ",file($path)));
- $data = strip_tags($data);
- $reg = "/of about (.*?) from/";
- $page = ereg_replace("\n", "", $data);
- preg_match_all($reg, $page, $matches);
- if(count($matches[0])==0){
- echo "No back link found for the site/domain $domain";
- }
- else{
- $backlink = $matches[1][0];
- echo "Total yahoo back link of <b>$domain</b> is <b>$backlink</b>";
- }
- ?>
复制代码 |
|