link validation script

Status
Not open for further replies.

filthy123

(>゚∀゚)>
Oct 16, 2007
97
2
0
hi

i'm looking for a script that can check multiple wesbites for a certain link. what i would assume the script would do is scrape the site and just check for the specified link, and return a result if it is there a not. ideally, the list of sites to check would be stored in a mysql db.

any help with this will be greatly appreciated!
 


Heres a little php to get you started
<?
$needle = ""; //Link you are looking for on the page
$page = ""; //Page you want to find link on
$content = file_get_contents($page);
if(strstr($content, $needle))
{
echo("Link Found");
}
?>
Untested.
 
Status
Not open for further replies.