This is the documentation for PHP Weather version 1.x. If you're using PHP version 4 or greather, then you should use the newer version 2 of PHP Weather instead. PHP Weather 1.x is still here for people who still use PHP version 3, as PHP Weather 1.x is known to on version of PHP all the way back to 3.0.3.
PHP Weather is a script written in PHP, that will decode a METAR weather report. Every hour a round the clock airports make a METAR-report where they measure things like the temperature, the wind speed and direction etc. This information is available on the Internet. PHP Weather retrieves this information and can cache the METARs in a database so subsequent request for the same station will be served as fast as possible.
But the report is not just saved in plain-text. Its coded in a special code, so it has to be decoded before you can use it. This is what PHP Weather is for, decoding a METAR into plain-text, so you can use for something useful.
The report below is the latest from Aalborg, Denmark (this is where I live). The raw METAR looks like this:
Not exactly a pretty sight? Well by using PHP Weather you could also present the information like this:
Sorry! There is no data available for Aalborg, Denmark.