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