- print_r: documentation ( source)
- simplexml_load_file: documentation ( source)
<?php
$url = "https://apps.tirol.gv.at/lwd/produkte/llb/2014-2015/2015-05-01_0730/2015-05-01_0730_avalanche_bulletin_tyrol_de.xml";
//disabled for security reasons
// if(file_exists($url)){
// $xmlFile = simple_load_file($url);
// loadToDatabase($xmlFile);
// } else {
// exit("Coudn't find xml file");
// }
$xmlFile = simplexml_load_file($url);
loadToDatabase($xmlFile);
function loadToDatabase($file){
print_r($xml_File);
}
?>