Installation instructions for PHP Weather CVS-1.9.6 2001-06-27 Copyright (C) 2000, 2001 Martin Geisler Licensed under the GNU GPL. See the file COPYING for details. Getting the files ----------------- You can always get the latest version from phpweather.sourceforge.net Installation ------------ To try out PHP Weather to see that it works, just untar the tarball into a directory on your webserver, and load the page demo.php in your favorite browser. The page should show the current weather-conditions in Aalborg, Denmark (that's where I live) and in Honolulu, Hawaii (that's not where I live, but the weather is better there than in Denmark :-) There will also be a drop-down list where you can select a city and a language, so have the weather for that city displayed in the chosen language. For a quick introduction to PHP Weather, see demo.php. It contains a lot of examples and instructions on the use of PHP Weather. But I can't guarantee that the information is 100% up-to-date. For detailed, and current, information about using PHP Weather please see my webpages at this address: http://phpweather.sourceforge.net I've chosen to put the documentation there, because it's easier for me to update. It also gives you a chance to see all the features of PHP Weather in action. Database Setup -------------- To use a MySQL database, you should create a table with the following SQL-statement: CREATE TABLE metars ( metar VARCHAR(255) NOT NULL, timestamp TIMESTAMP(14), station VARCHAR(4) NOT NULL, PRIMARY KEY (station), UNIQUE station (station) ); If you're using a PostgreSQL database, you should use this statement instead: CREATE TABLE metars ( metar VARCHAR(255) NOT NULL, timestamp TIMESTAMP, station VARCHAR(4) PRIMARY KEY NOT NULL ); Bugs? ----- If you find a bug or miss something in PHP Weather, please don't hesitate to mail this address: The address is a maillinglist for reporting bugs and general discussions about PHP Weather. To join the list, please to to this page: http://lists.sourceforge.net/lists/listinfo/phpweather-devel Please remember to include the METAR you're having problems with when you send me a message. Without it, I can't really help you. Enjoy! - Martin Geisler