Mercurial > hg > webaudioevaluationtool
comparison php/score_parser.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 |
---|---|
49 | 49 |
50 // Build the root nest object to hold the testPages | 50 // Build the root nest object to hold the testPages |
51 $root = new nestedObject("root"); | 51 $root = new nestedObject("root"); |
52 | 52 |
53 // XML Saves location - assumes it will be saves/ | 53 // XML Saves location - assumes it will be saves/ |
54 $saves = glob("../saves/*.xml"); | 54 $saveLocation = getSaveLocation(); |
55 $saves = glob($saveLocation."*.xml"); | |
55 if (is_array($saves)) | 56 if (is_array($saves)) |
56 { | 57 { |
57 foreach($saves as $filename) { | 58 foreach($saves as $filename) { |
58 $xml_string = file_get_contents($filename, FILE_TEXT); | 59 $xml_string = file_get_contents($filename, FILE_TEXT); |
59 $xml_object = simplexml_load_string($xml_string); | 60 $xml_object = simplexml_load_string($xml_string); |