Answer:
this should do, place your links in a file called links.txt and replace example.com in the code with the url you want to be searched for, and then execute
<?php
$file = "links.txt";
$theURL = "example.com";
$webPagesURLs = file($file);
foreach($webPagesURLs as $webPageURL){
$webPageContent = @file_get_contents($webPageURL);
if(strpos($webPageContent, $theURL) !== false ){
print "$theURL Found in <a href=$webPageURL > $webPageURL </a><br>\n";
}
}
?>
No comments:
Post a Comment