I searched the forum but did not find any particular thread with this. I am following PHPToys tutorial to retrieve Yahoo weather information. Now I want to add forecast information. In the RSS file the information is displayed like this: <yweather:forecast day="Sun" date="26 Oct 2008" low="9" high="19" text="Sunny" code="32" /> This is the PHP code I have to get information: $spos = strpos($wrss,'yweather:forecast text=" ')+strlen('yweather:forecast text="'); $epos = strpos($wrss,'"',$spos); if ($epos>$spos){ $atmosfera = substr($wrss,$spos,$epos-$spos); } Code (markup): On the first line if I do yweather:forecast day=" this will get me the current day information but if i want to get the text="Sunny" variable it does not work. So how may I retrieve more information of a given string?
This script I wrote will give all information contained in variables: http://www.awesomephp.com/?Weather Peace,
Here you have a nice tutorial: http://blog.unijimpe.net/reporte-del-clima-en-php/ If you don't understand it (because it's in Spanish), just download the code and analyze it. Bye!
Ive seen also this API on this site www.philjobspot.com, and I want to know how did they implement it in Ajax. Any Idea?