Php Actual Weather Query Script

May 8th, 2014

Download here:

This is a simple script I made mostly based off of, to get it to work, go to This Url, and choose the airport nearest to you. Copy that URL and replace $url in the document with your URL.

Next, enter the various things you want to do in the $rain, $snow, $fog variables, and it will do the rest for you.


Since writing this, Chris Blakley of has since notified me that there is a better way to do this:

It uses Yahoo’s XML Weather.

The new file is found here:

Now all you have to do is replace $zipcode with your zip code. Thanks again, Chris!




2 thoughts on "Php Actual Weather Query Script"

  1. Chris says:

    Hey, glad to see that my post inspired your project! Thanks for the backlink too! I’ll be sure to follow your repo on Github.

    1. joeybab3 says:

      Thanks! This was the best and simplest weather script i could find!

Leave a Reply

Your email address will not be published. Required fields are marked *