Re: Using PHPWeather question
Brought to you by:
iridium
|
From: Daisyhead <je...@da...> - 2004-02-08 20:56:19
|
Max,
Could I ask one more question? I'm trying to add other tags and my current
code looks like this:
<?php
require('/home/xxx/public_html/weather/phpweather.php');
$weather = new phpweather();
$weather->set_icao("KOMA");
$foo = $weather->decode_metar();
$temp_c = $foo['temperature']['temp_c'];
$temp_f = $foo['temperature']['temp_f'];
$miles_per_hour = $foo['wind']['miles_per_hour'];
echo "Temp: $temp_f ° Fahrenheit<br>";
?>
echo "Wind: $miles_per_hour MPH";
?>
But I cannot get the wind speed to show up. Any idea what I'm doing wrong? I
thought you could just plug in the other tags you want and Presto!
Thanks,
Jenni
|