Badan Meteorologi, Klimatologi, dan Geofisika

TAF

[insert_php]

$taf_url = ‘http://aviationweather.gov/adds/tafs/?station_ids=wimm&std_trans=standard&submitmet=Submit’;
$taf_file = file_get_contents($taf_url);
$dom = new DOMDocument;
@$dom->loadHTML($taf_file);
$elems = $dom->getElementsByTagName(‘font’);
foreach ($elems as $elem){
echo ‘

‘;
echo $elem->nodeValue . ‘

‘;
}

?>

[/insert_php]

Selengkapnya>>>