Oppdaterte filsti
This commit is contained in:
parent
e6d44dca6d
commit
fdfa3b2c50
@ -16,7 +16,7 @@ header('Access-Control-Expose-Headers: X-Events');
|
||||
|
||||
include 'lastSavedChange.php';
|
||||
|
||||
$resultFile = "resultater/Resultater.xml";
|
||||
$resultFile = "resultater/results.xml";
|
||||
//load variable from last check
|
||||
$lastChange = filemtime($resultFile);
|
||||
$time = date('r');
|
||||
@ -31,7 +31,7 @@ if ($lastSavedChange<$lastChange){
|
||||
$var_str = var_export($lastChange, true);
|
||||
$var = "<?php\n\n\$lastSavedChange = $var_str;\n\n?>";
|
||||
file_put_contents('lastSavedChange.php', $var, LOCK_EX);
|
||||
$objXmlDocument = simplexml_load_file("resultater/Resultater.xml");
|
||||
$objXmlDocument = simplexml_load_file("resultater/results.xml");
|
||||
|
||||
//xml to json
|
||||
if ($objXmlDocument === FALSE) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
libxml_use_internal_errors(TRUE);
|
||||
$objXmlDocument = simplexml_load_file("resultater/Resultater.xml");
|
||||
$objXmlDocument = simplexml_load_file("resultater/results.xml");
|
||||
|
||||
if ($objXmlDocument === FALSE) {
|
||||
foreach(libxml_get_errors() as $error) {
|
||||
|
Loading…
Reference in New Issue
Block a user