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