secret007 Posted January 27, 2009 Share Posted January 27, 2009 Hy friends, I want to show weather on my web page .. e.g. when a client clicks on let say newyork than on "newyork.html/php" newyorks weather will be shown and when anyone clicks on new dehli than on the respective page respective weather will be shown .. is there any script or API ??? Quote Link to comment https://forums.phpfreaks.com/topic/142584-cities-wheather-widget/ Share on other sites More sharing options...
uniflare Posted January 27, 2009 Share Posted January 27, 2009 http://www.voegeli.li/development/class.yahoo.weather/documentation.htm Sorry i cant give more info, i never used this class or any weather script for that matter, good luck. Quote Link to comment https://forums.phpfreaks.com/topic/142584-cities-wheather-widget/#findComment-747284 Share on other sites More sharing options...
secret007 Posted January 27, 2009 Author Share Posted January 27, 2009 http://www.voegeli.li/development/class.yahoo.weather/documentation.htm Sorry i cant give more info, i never used this class or any weather script for that matter, good luck. cool man, no problem, this is enough thanks. Quote Link to comment https://forums.phpfreaks.com/topic/142584-cities-wheather-widget/#findComment-747290 Share on other sites More sharing options...
secret007 Posted January 27, 2009 Author Share Posted January 27, 2009 hey man i m unable to use this class , i tried but nothing showed on the page anyone help me plz. how to use this class i can't understand the documentation .. Quote Link to comment https://forums.phpfreaks.com/topic/142584-cities-wheather-widget/#findComment-747327 Share on other sites More sharing options...
Philip Posted January 27, 2009 Share Posted January 27, 2009 Should be pretty simple: <?php include("class.xml.parser.php"); include("class.weather.php"); $weather_chile = new weather("CIXX0020", 3600, "C"); // LocationCode, seconds of cache lifetime, TempUnit (F or C) $weather_chile->parsecached(); ?> Change "CIXX0020" to whatever city code you need (find that on Yahoo), and then if you want it in Fahrenheit, change the "C" to "F" Quote Link to comment https://forums.phpfreaks.com/topic/142584-cities-wheather-widget/#findComment-747328 Share on other sites More sharing options...
redarrow Posted January 27, 2009 Share Posted January 27, 2009 http://www.cruelacid.com/?page=weather Quote Link to comment https://forums.phpfreaks.com/topic/142584-cities-wheather-widget/#findComment-747329 Share on other sites More sharing options...
secret007 Posted January 27, 2009 Author Share Posted January 27, 2009 DONE !! thanks for the help and comments... Quote Link to comment https://forums.phpfreaks.com/topic/142584-cities-wheather-widget/#findComment-747335 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.