class yahoo weather

i wrote a new php class, that makes it very easy to use weather data from weather.yahoo.com! an integrated caching-system makes it very fast. you can download the class right here for free.
you need only 4 lines of code to get the actual weather situation and 2 day forecast of any location, that is provided by weather.yahoo.com! integrated caching (you can define the cache lifetime by your own) prevents your application to load the same data every page hit. this makes the rss parsing very fast!
// Include the classes
include("class.xml.parser.php");
include("class.weather.php");
// LocationCode, seconds cachelifetime, TempUnit (F or C)
$weather_chile = new weather("CIXX0020", 3600, "C");
// Parse the weather data with caching
$weather_chile->parsecached();
view this package on phpclasses.org