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