Mercurial > hg > webaudioevaluationtool
comparison php/requestKey.php @ 2512:0217c4781e5e
Minor
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Mon, 24 Oct 2016 10:48:00 +0100 |
parents | 177cbd750610 |
children | 4cbd314e5d9f |
comparison
equal
deleted
inserted
replaced
2511:177cbd750610 | 2512:0217c4781e5e |
---|---|
39 if ($unique) { | 39 if ($unique) { |
40 $key = $tempKey; | 40 $key = $tempKey; |
41 } | 41 } |
42 } | 42 } |
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 return; |
49 } | 49 } |