Mercurial > hg > webaudioevaluationtool
comparison php/requestKey.php @ 2511:177cbd750610
WIP for #158
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Mon, 24 Oct 2016 10:45:11 +0100 |
parents | 8536e978ab6f |
children | 0217c4781e5e |
comparison
equal
deleted
inserted
replaced
2510:8536e978ab6f | 2511:177cbd750610 |
---|---|
43 | 43 |
44 $filename = "saves/save-".$key.".xml" | 44 $filename = "saves/save-".$key.".xml" |
45 $fileHandle = fopen($filename, 'w'); | 45 $fileHandle = fopen($filename, 'w'); |
46 if ($fileHandle == FALSE) { | 46 if ($fileHandle == FALSE) { |
47 echo "<response><state>ERROR</state><key>".$key."</key></response>"; | 47 echo "<response><state>ERROR</state><key>".$key."</key></response>"; |
48 return; | |
48 } | 49 } |
49 fclose($fileHandle); | 50 fclose($fileHandle); |
50 // TODO: | 51 // TODO: |
51 // Generate the XML Base file and save it | 52 // Generate the XML Base file and save it |
52 $doc_struct = new SimpleXMLElement('<waetresult/>'); | 53 $doc_struct = new SimpleXMLElement('<waetresult/>'); |