Source: weather.phps - download
<html dir=rtl>
<header>
<title>طقس اليوم</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
</header>
<body>
<?php
//work with (PHP 5 >= 5.2.1)
$cache sys_get_temp_dir().'/weather.html';
if(
filemtime($cache) <= (time() - 60*60*6)) {
    
$data file_get_contents('http://www.pme.gov.sa/weather.asp');
    
file_put_contents($cache$data);
}
//parse data
$data file_get_contents($cache); 
$reg '#<tr>.+<td(.+)>(&nbsp;|)</td>.+<td(.+)>(.+)</td>.+<td(.+)>(\\d+)</td>.+<td(.+)>(\\d+)</td>.+<td(.+)>(\\d+)</td>.+<td(.+)>(.+)</td>.+</tr>.+<tr>.+<td(.+)>(.+)</td>.+</tr>#Usi';
preg_match_all($reg$data$out);
//make table
$weather '<table border="1"><tr><th colspan="5">طقس اليوم</th></tr><tr><th>المدينة</th><th>العظمى</th><th>الصغرى</th><th>الرطوبه</th><th>الظاهره الجويه</th></tr>';
foreach(
$out[12] as $key=>$val) {
    
$weather .= '<tr>';
    
$weather .= '<td>'.$out[12][$key].'</td>';
    
$weather .= '<td>'.$out[10][$key].'</td>';
    
$weather .= '<td>'.$out[8][$key].'</td>';
    
$weather .= '<td>'.$out[6][$key].'</td>';
    
$weather .= '<td>'.$out[14][$key].'</td>';
    
$weather .= '</tr>';
}
$weather .= '<tr><th colspan="5">حالة الطقس مقدمة من <a href="http://www.pme.gov.sa/">الرئاسة العامة للأرصاد و حماية البيئة</a></th></tr></table>';
//print html code
echo $weather;
?>
</body>
</html>