Using PHPWeather question
Brought to you by:
iridium
From: Jenni <je...@da...> - 2004-02-07 17:55:56
|
I have installed and configured PHPWeather, but am having problems actually getting it to work on my blog. I am fairly new to PHP and MySQL, although I've been able to teach myself enough to figure most things out. But for some reason I cannot figure out how to call the weather information into my blog. I tried using: <?php include('phpweather.inc'); include('locale_en.inc'); $metar = get_metar('KOMA'); $data = process_metar($metar); $temp_c = $data['temp_c']; $temp_f = $data['temp_f']; echo "<p>The temperature is $temp_c degrees Celsius ($temp_f degrees Fahrenheit).</p>"; ?> I cannot see where I have a filed named "phpweather.inc" or "locale_en.inc" Can anyone clue me in as to what I did wrong? The documentation isn't very user friendly for us newbies. ;-) Thanks, Jenni -- "Nowadays every girl with a henna tattoo and a spice rack thinks she's a sister to the dark ones." |