Dynadot

Simple Backlink Checker (Google)

Spaceship Spaceship
Watch
Impact
0
PHP:
<?php
$domain = "phpright.com"; // Domain to check backlinks

$url = "http://www.google.com/search?q=link%3A".$domain;
$file = file_get_contents($url);
if (!strstr($file,'did not match any documents')) {
 $linksto = strstr($file,"of about <b>");
 $linksto = substr($linksto,strlen("of about <b>"));
 $linksto = str_replace(strstr($linksto,'</b>'),'',$linksto);
 echo $linksto.' backlinks';
}
else
{
 echo 'No backlinks';
}
?>

Thought this might be useful to some who want to make a simple backlink checker or just have a dynamic listing of their site's backlinks on their homepage. Just change the $domain variable and you're on your way.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
old
 

Attachments

  • Picture 6.png
    Picture 6.png
    425.5 KB · Views: 114
Last edited:
0
•••
i think you were supposed to have this line:
PHP:
$domain = "jag.me";
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back