Many times we see websites that read weather from an RSS feed on another site, here I will show you how to read weather onto your site from Yahoo.
How to get the XML from
To read the weather from Yahoo weather you need to send a request as follows:
where p is the location code. In this tutorial I am using “Calcutta/Kolkata, India”, and as you can see the location code or zip code is INXX0028, if you live in the USA you can just use the ZIP code where you are. Next, ‘u’ is the unit in which the weather must be displayed, I chose ‘f’ for Fahrenheit, but if you want you can also choose ‘c’ for Celsius. Continue reading “Read weather information using yahoo API in PHP, MySQL”