Mercurial > hg > webaudioevaluationtool
comparison php/requestKey.php @ 2513:4cbd314e5d9f
WIP for #158
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Mon, 24 Oct 2016 10:57:50 +0100 |
parents | 0217c4781e5e |
children | fb8f43204ae0 |
comparison
equal
deleted
inserted
replaced
2512:0217c4781e5e | 2513:4cbd314e5d9f |
---|---|
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 } |