Mercurial > hg > webaudioevaluationtool
comparison php/get_filtered_count.php @ 3120:53d701288da5
Create new php config to allow saves to be stored outside of web scope
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Wed, 18 Jul 2018 16:47:07 +0100 |
parents | 464c6c6692d6 |
children | edd536f01e4b |
comparison
equal
deleted
inserted
replaced
3119:aa4503f8c630 | 3120:53d701288da5 |
---|---|
31 } | 31 } |
32 } | 32 } |
33 } | 33 } |
34 | 34 |
35 $files = array(); | 35 $files = array(); |
36 $saves = glob("../saves/*.xml"); | 36 $saveLocation = getSaveLocation(); |
37 $saves = glob($saveLocation."*.xml"); | |
37 if (is_array($saves)) | 38 if (is_array($saves)) |
38 { | 39 { |
39 foreach($saves as $filename) { | 40 foreach($saves as $filename) { |
40 $xml_string = file_get_contents($filename, FILE_TEXT); | 41 $xml_string = file_get_contents($filename, FILE_TEXT); |
41 $xml_object = simplexml_load_string($xml_string); | 42 $xml_object = simplexml_load_string($xml_string); |