360 ) { //print "cache doesn't exist or old\n"; // doesn't exist or is old, let's open the url $fh = fopen( "cache/$url_clean", "w" ); fwrite( $fh, join('',file($url)) ); fclose( $fh ); return "cache/$url_clean"; } else { //print "cache newer than 30min\n"; return "cache/$url_clean"; } } //$source = getRssSource( 'http://www.darpa.mil/grandchallenge/TeamInfo.html' ); // $source = getRssSource( 'http://web.archive.org/web/20050330035726/http://www.darpa.mil/grandchallenge/TeamInfo.html'); $source = getRssSource( 'qualifying_teams_archive_org.html'); $text = join('',file( $source ) ); preg_match('/