1 * min_seconds($mins)) { // if file older than 1 hours then create new one create_data($url,$shar); } // read feed into SimpleXML object $sxml = simplexml_load_file($xml_file);// then we do it if($ajax == "no"){ ?> Qaidi Weather '; echo ''; }else{ echo ''; echo ''; }?>
'.$lang['Qamishli'].'
'; }?> current_condition; $columnCount = count($sxml->weather); foreach ($sxml->weather as $days) { if($count++ % $columnCount == 0){echo "";} echo ""; if ($count == $num_of_days) break; // number of days if localhost save it } while($count++ % $columnCount != 0){echo "";}?>
"; echo "
"; echo "".hefta($days->date).""; echo'
'.$days->date .'
'.$lang['max'].' : '.$days->tempMaxC .' °c
'. $lang['min'].': '.$days->tempMinC .' °c
'.$lang['max'].' : '.$days->tempMaxF .' °F
'. $lang['min'].' : '.$days->tempMinF .' °F
'.$lang['wind'].': '.$days->windspeedKmph .' '.$lang['Kmph'].' '.$days->winddirection .'
'; //Precip : '.$days->precipMM .' mm echo '
'.desc($days->weatherDesc) .'
'.$lang['max'].':'.$days->tempMaxC .'°
'. $lang['min'].':'.$days->tempMinC . '°
'; echo "
"; echo "