View Single Post
Old 07-12-2008, 08:54 AM  
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
Quote:
Originally Posted by Davey Jones View Post
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...
?>
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote