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