ok, this code has been before in the AS forum but now is in the correct place
the problem is that $xmlString isn’t saved in the file, the length of the string $xmlString is saved instead. this must be a very simple thing but I really dont know much php.
<?php
$xmlString=readfile("php://input");
if($xmlString != NULL){
$file = fopen("tagboard.xml", "w+") or die("Can't open XML file");
if(!fwrite($file, $xmlString)){
print "Error writing to XML-file";
}else{
print $xmlString;}
fclose($file);}
else {print "No data was sent";}
?>