Archive for the ‘PHP’ Category.

New Spanish version of PHP Weather

Thanks to Eduardo Guilenea who provided me with a translation of PHP Weather into Spanish, PHP Weather now has support for foreign languages.

So far there’s only English and Spanish, but more will hopefully come. If you want to translate PHP Weather, then have a look at the locale_en.inc file in the tarball. This is the file you’ll have to translate into your chosen language.

You have to translate all the text, just remember to leave the %s intact. They will be replaced by the actual numbers and strings later.

I’ve also made a maillinglist for PHP Weather, so please announce it there. To do this, just send a mail to [email protected]. If you want to subscribe to the list, then send a mail to [email protected].

Preliminary support for WAP in PHP Weather

You can now get access the current weather from any where in the world with WAP! Just point your WAP-browser on your mobile phone to [http:/www.gimpster.com/wap/](#).

I’ve adjusted the pretty_print_metar() function, so it can be used in WAP-pages. This means that it only shows the most important informations without all the text. The small displays on mobile phones limit the amount of information you can present at any given time, so it has to be compact.

Please be aware, that this is my very first attempt at WAP, and that the page therefore isn’t finished. But please send me your suggestions — the many good ideas you’ve already send me regarding PHP Weather, has improved it tremendously.

PHP Shell v. 1.7 announced

Freshmeat After the enormous success I’ve had with my announcement of PHP Weather, I decided to make a Freshmeat announcement of PHP Shell as well.

So, if you need a shell wrapped in a PHP script, then download PHP Shell at once.

PHP Weather v. 1.24

PHP Weather PHP Weather has been improved again. New features include:

  • You can now choose between using a DBM database, a MySQL database or not at all for your METARs. This was added by Jeffrey Y. Sue.

  • The pretty_print_metar() functions now reports all available cloud layers.

  • If the current weather-conditions are reported by the station, then that information will show up in the pretty_print_metar() function. I have learned a new thing because of that: it actually rains in Honolulu, Hawaii. But not as often as where I live, in Aalborg, Denmark :-)

    Also, if the station reports that there was a “trace” of precipitation, it will be part of the output.

  • There is also a bug-fix that prevented PHP Weather from running on PHP3. I had used the new array_shift() function, but it is only available in PHP4. So i rewrote that piece of code using functions also present in PHP3.

  • Fix for some broken reports that miss the time-part. If it’s not present we add the current time to the metar. It might not be the time the report was made, but the report was broken anyway :-)

You should really upgrade — it wont break things, just make them work a little better :-)

PHP Weather has been submitted to Freshmeat

Freshmeat Today I submitted PHP Weather to Freshmeat. So now it should be much easier for people to find. With a little luck, this should appear on the frontpage today. This should also generate a lot of hits.