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