Quote:
Originally Posted by Davey Jones
I need a scrip that would check my hardlink trades and make sure that people are keeping my link up.
There surely must be something like this?
|
Code:
<?php
$result = mysql_query("SELECT * FROM trades");
while($row = mysql_fetch_array($result)) {
$string = file_get_contents($row[link]);
if(!eregi("http://www.yourlink.com",$string)) {
$bad[] = $row[site_name];
}
}
//and then you've got an array full of the names of the bad trades...
?>