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