RE: Using PHPWeather question
Brought to you by:
iridium
From: Max H. <ma...@fl...> - 2004-02-10 08:28:48
|
errr bad HTML on my part. <?php // first of all, set up the decoder require('phpweather.php'); $weather = new phpweather(); $weather->set_icao("KOMA"); // next, the text parsing require('output/pw_text_en.php'); $text = new pw_text_en($weather); echo $text->print_pretty(); echo '<br />'; // now, images require('output/pw_images.php'); $icons = new pw_images($weather); echo '<img src="' . $icons->get_sky_image() . '" height="50" width="80" border="1" alt="Current weather in ' . $weather->get_location() . '" /> ' . '<img src="' . $icons->get_winddir_image() . '" height="40" width="40" border="1" alt="Current wind in ' . $weather->get_location() . '" /> ' . '<img src="' . $icons->get_temp_image() .'" />'; ?> is better :) max |