PHP-Code:
$icao = array ("EDVE", "EDDV", "EDDM");
$icaolist = count($icao);
for ($i=0; $i < $icaolist; $i++)
{
$arr = file ("ftp://weather.noaa.gov/data/observations/metar/stations/".$icao[$i].".TXT");
$mfp = fopen("metartmp.txt", "a");
$save = implode($arr);
fwrite($mfp, $save."\n");
fclose($mfp);
}
Kommentar