beboo002 Posted June 2, 2008 Share Posted June 2, 2008 hello all <?php $link = "http://myvacation.co.uk"; function beboo_yahoo($uri) { $uri = trim(eregi_replace('http://', '', $uri)); $uri = trim(eregi_replace('http', '', $uri)); $url = 'http://search.yahoo.com/search?p=links:http://'.$uri.'&bwm=p&bwms=p&fr2=seo-rd-se'; $v = file_get_contents($url); preg_match('/of about \<strong\>(.*?) from\<\/strong\>/si',$v,$r); return ($r[1]) ? $r[1] : '0'; } function beboo_msn($uri) { $uri = trim(eregi_replace('http://', '', $uri)); $uri = trim(eregi_replace('http', '', $uri)); //$url = 'http://search.live.com/results.aspx?q='.$uri.'&go=&form=QBRE'; $url = 'http://search.live.com/results.aspx?q=link:'.$uri.''; $v = file_get_contents($url); preg_match('/1 of\<strong\>(.*?) \<\/strong\>/si',$v,$r); return ($r[1]) ? $r[1] : '0'; } echo "<strong>Yahoo Backlinks:</strong> " . beboo_yahoo($link) . "<br />"; echo "<strong>MSN Backlinks:</strong> " . beboo_msn($link) . "<br />"; ?> cont find actuall back link to this code thanks & regard Beboo Link to comment https://forums.phpfreaks.com/topic/108335-msnyahoo-backlink-script-not-working/ Share on other sites More sharing options...
beboo002 Posted June 2, 2008 Author Share Posted June 2, 2008 on line this preg_match('/of about \<strong\>(.*?) from\<\/strong\>/si',$v,$r); when result less then 100 then it work and when result is more then 100 . it means the above match is not sufficent help me for making match rule thanks beboo Link to comment https://forums.phpfreaks.com/topic/108335-msnyahoo-backlink-script-not-working/#findComment-555435 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.