View Single Post
Old 07-12-2008, 12:22 PM  
AnniKN
Confirmed User
 
AnniKN's Avatar
 
Industry Role:
Join Date: Feb 2008
Location: South of the border
Posts: 1,682
Quote:
Originally Posted by k0nr4d View Post
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...
?>
This is awesome!!! thanks for posting
AnniKN is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote