$execute = mysql_query("SELECT url,id FROM passwords WHERE dateadded >= '".date('H:i:s',mktime(date('i')-15))."' ORDER BY id ASC");
while($row = mysql_fetch_array($execute)) {
if($site = fopen($row['url'],"r")) {
$deleted = "no";
}
else {
$deleted = "yes";
}
print($row['url']." ($deleted)<br>");
}
Any idea on how I can make that code work?
Right now it is only opening the first site and saying all the other are dead links ... when in actuality they aren't.
I've put an fclose statement EVERYWHERE and still no dice.