Re: Using PHPWeather question
Brought to you by:
iridium
From: Etienne T. <et...@om...> - 2004-02-10 03:34:48
|
On Mon, 2004-02-09 at 18:50, Daisyhead wrote: > > The 2.x series have better (but still far from perfect) documentation, > > which you'll find in the tarball/zipfile. > > Thank you Martin. I guess it's just because I'm not all that familiar with > PHP yet. I am looking at the documentation that came with my v2.x download > and I've managed to figure out how to call in the temp and wind speed, but > am having problems with things like visibility and cloud cover, etc. Is > there any way to use a "shortcut" and call in all the variables? > If you want a "shortcut" you should use the methods in output/pw_text.php. It has methods like print_pretty(), print_pretty_visibility(), print_pretty_clouds(). It will even be in the language you set. Look at the index.php file, it has all the necessary steps. For your needs, I would put in print_pretty_visibility() and not print_pretty(), which is what the main page of phpweather uses. Etienne > Thanks, > Jenni > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > PHPWeather-devel mailing list > PHP...@li... > https://lists.sourceforge.net/lists/listinfo/phpweather-devel > |