I paste it in code but I get error in line 11. What did I wrong?
<code>
<html>
<head>
</head>
<body>
<?
include("class.xml.parser.php");
include("class.weather.php");
$timeout=36060; // 3 hours
$languaje = array (
'Cloudy' = 'Nublado',
'Sunny' = 'Soleado',
// etc. for all words to be translated
);
if (isset($ENV["TEMP"]))
$cachedir=$ENV["TEMP"];
else if (isset($ENV["TMP"]))
$cachedir=$ENV["TMP"];
else if (isset($ENV["TMPDIR"]))
$cachedir=$ENV["TMPDIR"];
else
$cachedir="/tmp";
$cachedir=str_replace('\\','/',$cachedir);
if (substr($cachedir,-1)!='/') $cachedir.='/';
$weather_chile = new weather("CAXX0518", 3600, "C", $cachedir);
$weather_chile->parsecached();
$weather_chile = preg_replace(array("Cloudy"), array("c"),$weather_chile);
print "<img src=http://us.i1.yimg.com/us.yimg.com/i/us/we/52/".$weather_chile->forecast['CURRENT']['CODE'].".gif>";
print "<h1>Actual Situation</h1>";
echo "acttext: ".strtr($weather_chile->forecast['CURRENT']['TEXT'], $languaje)."<br>";
print round(($weather_chile->forecast['CURRENT']['TEMP'] - 32)*(5/9));
print "<br>";
print "acttime: ".$weather_chile->forecast['CURRENT']['DATE']."<br>";
print "actcode: ".$weather_chile->forecast['CURRENT']['CODE']."<br>";
?>
</body>
</html>
</code>