This is the PHP script
<?php
echo"
<style>
#rss{
margin: 0px auto;
font-family: arial;
font-size: 8pt;
color: #222;
width: 150px;
height: 40px;
padding: 0px 0px 0px 0px;
border: 1px solid #555;
text-align: left;
}
</style>
</head>
<body>
<br /><br />
";
$feed_url = "http://rss.wunderground.com/auto/rss_full/MN/Saint_Paul.xml?units=both";
// INITIATE CURL.
$curl = curl_init();
// CURL SETTINGS.
curl_setopt($curl, CURLOPT_URL,"$feed_url");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 0);
// GRAB THE XML FILE.
$xmlTwitter = curl_exec($curl);
curl_close($curl);
// SET UP XML OBJECT.
// Use one of the two lines depending on your version
// of PHP5. Comment-out the one you are not using.
// With some hosts, the SimpleXMLElement does not work.
//$xml = new SimpleXMLElement($xmlTwitter);
$xml = simplexml_load_string($xmlTwitter);
foreach ($xml->channel as $channel ){
$line=$channel->item->title;
}
$city="St. Paul, MN";
echo "
<div style='text-align:center; font-family:arial;'>
<div id='rss'>
";
list ($temp, $conditions) = split ('\/', $line);
list ($junk, $far) = split ('\:', $temp);
list ($left,$right) = split ('-',$conditions);
list ($cen,$desc) = split (',',$right);
$con="pixel.gif";
if(strstr($conditions, 'vercast')){$con="overcast.gif";}
if(strstr($conditions, 'ain')){$con="rain.gif";}
if(strstr($conditions, 'og')){$con="fog.gif";}
if(strstr($conditions, 'aze')){$con="haze.gif";}
if(strstr($conditions, 'now')){$con="snow.gif";}
if(strstr($conditions, 'loudy')){$con="cloudy.gif";}
if(strstr($conditions, 'unny')){$con="sunny.gif";}
if(strstr($conditions, 'lear')){$con="sunny.gif";}
if((strstr($conditions, 'unny'))&&(strstr($conditions, 'artly'))){$con="partly.sunny.gif";}
if((strstr($conditions, 'loudy'))&&(strstr($conditions, 'artly'))){$con="partly.cloudy.gif";}
if((strstr($conditions, 'loudy'))&&(strstr($conditions, 'ostly'))){$con="mostly.cloudy.gif";}
if((strstr($conditions, 'louds'))&&(strstr($conditions, 'catter'))){$con="partly.cloudy.gif";}
echo "
<img src='$con' width='50' height='40' alt='$con' title='$con' border='0' style='float: left; padding: 0px 5px 0px 0px;' />
<b>$city</b><br>$far<br>$desc
";
echo "</div>\n";
//echo $line;
?>