comparison php/requestKey.php @ 2514:fb8f43204ae0

Fix for #158
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Mon, 24 Oct 2016 11:01:55 +0100
parents 4cbd314e5d9f
children f41389149eab
comparison
equal deleted inserted replaced
2513:4cbd314e5d9f 2514:fb8f43204ae0
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><message>Could not open file for writing</message></response>";
48 return; 48 return;
49 } 49 }
50 fclose($fileHandle); 50 fclose($fileHandle);
51 // TODO: 51 // TODO:
52 // Generate the XML Base file and save it 52 // Generate the XML Base file and save it