Re: configured, now what?
Brought to you by:
iridium
|
From: Martin G. <gim...@gi...> - 2004-06-04 19:32:46
|
Joel <jdl...@ei...> writes:
> With 2.2.1, I tried:
>
> include ('./phpweather.php');
> $weather = new phpweather();
> $data = $weather->decode_metar();
> echo "<p>\n" . $weather->print_pretty() . "</p>\n";
> echo "<pre>\n";
> print_r($data);
> echo "</pre>\n";
That's almost correct --- PhpWeather 2.x seperates the output
functionality from the METAR parsing functionality. You must
therefore make an object to make the output:
require_once(PHPWEATHER_BASE_DIR . '/output/pw_text_en.php');
$text = new pw_text_en($weather);
$text->print_pretty();
That should do the trick.
--
Martin Geisler My GnuPG Key: 0xF7F6B57B
PHP EXIF Library | PhpWeather | PhpShell
http://pel.sf.net/ | http://phpweather.net/ | http://gimpster.com/
Read/write EXIF data | Show current weather | A shell in a browser
|