hungry_hippo

NSWRFS Total Ban XML PHP

Sep 27th, 2015
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <?php
  2.     $FDR=simplexml_load_file('http://www.rfs.nsw.gov.au/feeds/fdrToban.xml');
  3.     $MYFDR= $FDR -> District[3]; //Start counting the XML from Zero as the first Block
  4.         $DLT=$MYFDR->DangerLevelToday;
  5.         $DLTM=$MYFDR->DangerLevelTomorrow;
  6.         $FBT=$MYFDR->FireBanToday;
  7.         $FBTM=$MYFDR->FireBanTomorrow;
  8.         echo "Danger Level Today :", $DLT ,"<BR> Danger Level Tomorrow :", $DLTM ,"<BR>Fire Ban Today :", $FBT ,"<BR> Fire Ban Tomorrow :" , $FBTM;
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment