PHP Weather Home Page

How to WAP?

PHP Weather can also be used to serve current weather information to WAP-enables mobile phones. To do this, just put the file wap.php in the same directory as phpweather.inc and then point your WAP-browser on your mobile phone to the page. It should then show you the current weather in Aalborg, Denmark.

The format used in the wap.php-page is a smaller and more compact format than the one shown on this page. It looks like this:

Aalborg, 20344247 min ago
Wind: mps
Temp: C
Clouds:

The code is almost the same as when you make a normal page, you just use the pretty_print_metar_wap()-function instead:

<?
include('phpweather.inc');
pretty_print_metar_wap(get_metar('EKYT'), 'Aalborg');
?>

PHP Weather Logo SourceForge Logo