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