Close Search

5 Day Dawson City Forecast

[insert_php]
$url=”http://weather.gc.ca/city/pages/yt-6_metric_e.html”;
$fileopen=file($url);
$count=count($fileopen);
for($i=0;$i<$count;$i++){ $filegets.=$fileopen[$i]; } $tmpget_1=explode("Current Conditions

“,$filegets);
$result=explode(“Historical Data

“,$tmpget_1[1]);
echo $result[0];

//$string = $result[0];
//$patterns[0] = ‘/hwy_cell/’;
//$patterns[1] = ‘/hwy_cell/’;
//$patterns[2] = ‘/border=”1″/’;

//$replacements[0] = ‘text’;
//$replacements[1] = ‘text’;
//$replacements[2] = ‘cellpadding=10 bgcolor=7e935c class=whitetext’;

//echo preg_replace($patterns, $replacements, $string);

[/insert_php]

WP-Backgrounds Lite by InoPlugs Web Design and Juwelier Schönmann 1010 Wien