Jump to content
Dragos

[PHP] Google & Bing Backlink Verifier

Recommended Posts

  • Moderators
Posted
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];
}
}

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...