" . dirname(__FILE__) . "/weather.xml"); //$ans = file_get_contents(dirname(__FILE__) . "/weather.xml"); //echo $ans; $ans = file_get_contents("http://www.webservicex.net/globalweather.asmx/GetWeather?" . $sqs); $ans2 = str_replace('<' . '/string>','',str_replace('<' . '?xml version="1.0" encoding="utf-16"?>','',str_replace("<","<",str_replace(">",">",$ans)))); $ans = str_replace('<' . '?xml version="1.0" encoding="utf-8"?>','',str_replace('<' . 'Status>Success','',$ans2)); $ans2 = str_replace('<' . 'CurrentWeather>','',str_replace('','',$ans)); $ans = str_replace('<' . 'CurrentWeather>','',str_replace('','',$ans2)); $ans2 = str_replace('','',str_replace('','',str_replace('','',str_replace('','',str_replace('','',str_replace('','',str_replace('','',str_replace('','',str_replace('','',$ans))))))))); for ($jj=0; $jj<15; $jj++) { $ans = str_replace(">",": ",str_replace("<",$cr,$ans2)); $ans2 = $ans; } echo str_replace("\n","
",$ans); exit(0); } ?> Get the Weather via Global Weather ... http://www.webservicex.net/ ... thanks'; ?>

Hover (or Click) for weather from GlobalWeather

Parameter Value
CityName:
CountryName:

' . $ans . ''; ?>