If you wish to check backlinks to your or any other website from other websites that you know, then here is the php script that you can use:
<?php
$source = file_get_contents("source.txt");//stores all the websites that you want to check backlinks from
$needle = "www.name_of_your_site.com"; //dont use http as that has been taken care of later..
$new = explode("\n",$source);
foreach ($new as $check) {
$a = file_get_contents("http://".trim($check));
if (strpos($a,$needle)){
$found[] = $check;
}
else{
$notfound[] = $check;
}
}
echo "Matches found at: \n ".implode("\n",$found)."\n";
echo "No Matches found at: \n". implode("\n",$notfound);
?>