Hi jesster444,
Your snippet seems great, but I’m wandering how I can use it for french citys ?
I know that’s possible, I make the test on the weather.com site and if I put Paris or Bordeaux, I have results.
I found that, when I edit the weather.com code page :
<a href="/outlook/travel/businesstraveler/local/FRXX0016?from=search_current" onclick="setRecentSearch('FRXX0016','1','Bordeaux, FR','');">Current</a>
http://xoap.weather.com/weather/local/FRXX0016?cc=*&&prod=xoap&par=xxxxxx&key=xxxxxx
Now, if I put FRXX0016 in your query string connection
http://xoap.weather.com/weather/local/FRXX0016?cc=*&&prod=xoap&par=xxxxxx&key=xxxxxx
I get an xml output who seems good (got directly in brother window).
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--This document is intended only for use by authorized licensees of The Weather Channel. Unauthorized use is prohibited. Copyright 1995-2005, The Weather Channel Interactive, Inc. All Rights Reserved.-->
<weather ver="2.0">
<head>
<locale>en_US</locale>
<form>MEDIUM</form>
<ut>F</ut>
<ud>mi</ud>
<us>mph</us>
<up>in</up>
<ur>in</ur>
</head>
<loc id="FRXX0016">
<dnam>Bordeaux, France</dnam>
<tm>2:37 PM</tm>
<lat>44.83</lat>
<lon>-0.7</lon>
<sunr>7:42 AM</sunr>
<suns>5:50 PM</suns>
<zone>1</zone>
</loc>
<cc>
<lsup>11/2/06 2:00 PM Local Time</lsup>
<obst>Bordeaux, France</obst>
<tmp>55</tmp>
<flik>55</flik>
<t>Fair</t>
<icon>34</icon>
<bar>
<r>30.30</r>
<d>steady</d>
</bar>
<wind>
<s>16</s>
<gust>N/A</gust>
<d>50</d>
<t>NE</t>
</wind>
<hmid>41</hmid>
<vis>6.2</vis>
<uv>
<i>2</i>
<t>Low</t>
</uv>
<dewp>32</dewp>
<moon>
<icon>11</icon>
<t>Waxing Gibbous</t>
</moon>
</cc>
</weather>
But in fact my testing stop here because neither my local machine or my 1&1 hosting allows the use of http with the fopen function
If I can solve this problem, do you think there is a way to use something more explicit like "bordeaux, FR" for selecting the town ?
Thanks