Hi,
I have a script that pulls a count of total backlinks from some search engines; Google, MSN, Altavista, Yahoo
Problem is that they all give the correct results, apart from Yahoo which just returns a zero.
I am not a coder, but think the offending code may be the following:
And I think this is the part that actually displays the result, together with a link.
Any help appreciated.
Many thanks,
- Vince
I have a script that pulls a count of total backlinks from some search engines; Google, MSN, Altavista, Yahoo
Problem is that they all give the correct results, apart from Yahoo which just returns a zero.
I am not a coder, but think the offending code may be the following:
PHP:
//yahoo
$url1="http://search.yahoo.com/search?p=site%3A$showdomain&sm=Yahoo%21+Search&fr=FP-tab-web-t&toggle=1&ei=UTF-8";
$ugs->seturl($url1);
$ugs->gather();
$content=$ugs->getcontent();
preg_match("/<div id=yschinfo>(.*)<a/isU",$content,$yahoo);
preg_match("/about <strong>(.*)<\/strong>/isU",$yahoo[0],$yahoo1);
$url2="http://search.yahoo.com/search?p=link%3Ahttp%3A%2F%2F$showdomain&sm=Yahoo%21+Search&fr=FP-tab-web-t&toggle=1&ei=UTF-8";
$ugs->seturl($url2);
$ugs->gather();
$content=$ugs->getcontent();
preg_match("/<div id=yschinfo>(.*)<a/isU",$content,$yahoo);
preg_match("/about <strong>(.*)<\/strong>/isU",$yahoo[0],$yahoo2);
$yahoo1[1]=trim($yahoo1[1])?trim($yahoo1[1]):0;
$yahoo2[1]=trim($yahoo2[1])?trim($yahoo2[1]):0;
echo "Yahoo Indexed <a href=\"$url1\">".$yahoo1[1]."</a><br>Yahoo Backlinks <a href=\"$url2\">".$yahoo2[1]."</a><br><br>";
$yahoo1[1]=str_replace(",","",$yahoo1[1]);
$yahoo2[1]=str_replace(",","",$yahoo2[1]);
And I think this is the part that actually displays the result, together with a link.
PHP:
<td>Yahoo</td>
<td><?php echo $yahoo2[1]; ?></td>
<td><a href="http://search.yahoo.com/search?p=link%3Ahttp%3A//<?php echo $url; ?>&sm=Yahoo!+Search&fr=FP-tab-web-t&toggle=1&ei=UTF-8" target="_blank">Click Here </a></td>
Any help appreciated.
Many thanks,
- Vince
Last edited:






