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