n@1106: Could not open file';
n@1106: echo $xml;
n@1106: return;
n@1106: }
n@1106: $wbytes = fwrite($fileHandle, $postText);
n@1106: if ($wbytes == FALSE)
n@1106: {
n@1106: // FileWrite failed
n@1106: $xml = 'Could not write file "saves/'.$xmlfile.'"';
n@1106: echo $xml;
n@1106: return;
n@1106: }
n@1106: fclose($fileHandle);
n@1106:
n@1106: // Return JSON confirmation data
n@1106: $xml = 'OK"saves/'.$xmlfile.'"';
n@1106: echo $xml;
n@1106: ?>