Moderators Dragos Posted January 4, 2012 Moderators Report Posted January 4, 2012 function bingbacklink($link){ if (substr($link,0,4)=="http") { $link = parse_url($link); $host = $link['host']; }else{ $host = $link; } if ($host==""){ return 0; }else{ $link = "http://www.bing.com/search?q=link%3A" . trim($host) . "&go=&qs=n&sk=&sc=8-5&form=QBLH"; $source = file_get_contents($link); $s = explode('<span class="sb_count" id="count">',$source); $s = explode('</span>',$s[1]); $s = explode('of ',$s[0]); $s = explode(' ',$s[1]); return $s[0]; }}function googlebacklink($link) //TRECE DE FILTRUL PENTRU CAUTARE{ if (substr($link,0,4)=="http") { $link = parse_url($link); $host = $link['host']; }else{ $host = $link; } if ($host==""){ return 0; }else{ $link = "http://www.google.com/search?q=link:" . trim($host); $source = file_get_contents($link); $s = explode('of about <b>',$source); $s = explode('</b>',$s[1]); return $s[0]; }} 1 Quote