3 дец

Температура

(0)

[insert_php]
$url = „http://www.hidmet.gov.rs/ciril/osmotreni/index.rss“;
$xml = simplexml_load_file($url);
echo ‘‘.$xml->channel->description.’‘.’
‘;

//samo za Kraljevo
echo ‘‘.$xml->channel->item[18]->title.’‘;
echo ‘
‘;
$podatak = explode(„;“, $xml->channel->item[18]->description);
echo $podatak[1].’
‘;
echo $podatak[2].’
‘;
echo $podatak[3].’
‘;
echo $podatak[4].’
‘;
echo $podatak[5].’
‘;
echo $podatak[6].’
‘;
echo „Vreme zadnjeg ažuriranja: „.$xml->channel->lastBuildDate.’
‘;
[/insert_php]

to-top