Hi ,
I actually coded a php to check for backlink on all the sites listed on my Proxy List Site .
I even used usleep to get over the time limit set by server people , but still the script would stop working after few checks
Here is the link you can see :
Backlink Checker
The code for same is :
PHP Code:
<?php
$mydomain = "http://youcanhide.com"; // Set this to your domain
$list = file_get_contents("new.txt");
$urls = explode ("\n", $list);
echo "<B>Checking back links to $mydomain....</B><P><FONT SIZE=-1>";
foreach ($urls as $url) {
echo date('h:i:s') . "<br />";
//sleep for 10 seconds
usleep(2000000);
//start again
echo date('h:i:s');
if (strlen ($url)) {
echo $url . "<B><FONT COLOR=";
if (strpos (file_get_contents($url), $mydomain) != FALSE) {
echo "GREEN> Found";
} else {
echo "RED> Missing";
}
echo "</FONT></B><BR>";
}
}
echo "</FONT>";
?>
New.txt is written with the help of another php file which connects to DB and writes the details to new.txt
Please look into code and help me & also tell me how to add to avoid for a site which is down so it doesnt stop my script?
Regards,
Harshit


Bookmarks