"; $r_query = array_flip($r_query); $start = $r_query[0]; $r_query = array_flip($r_query); print "\nSearch for new uploads\n\n"; $query = get_data("http://robert.hurst-ri.us/downloads/"); preg_match_all("/href=\"(http:\/\/robert\.hurst-ri\.us\/files\/.*)\/\"/", $query, $dls); $new = 0; $old = 0; foreach ($dls[1] as $dl) { if (!$r_query[$dl]) { $new++; print "found: ".$dl."\n"; } else { $old++; } } /* // Original code, no longer applicable for ($x = $start; $x < $start + 10; $x++) { $query = get_data("http://robert.hurst-ri.us/downloads/?did=".$x); $gametitle = explode('

', $query); $gametitle = explode('<', $gametitle[1]); $gametitle = trim($gametitle[0]); if ($gametitle) { print $x."\t".$gametitle."\n"; $last = $x; } else { print "stop by ".$x.", no data found"; break; } } if ($last) { $start = $last + 1; } print "\nnext startnr\t".$start."\n\n"; */ ?>