<?php 
$today = date("D M j G:i:s T Y");
if (isset($GLOBALS["HTTP_RAW_POST_DATA"])){ 
    $xml = $GLOBALS["HTTP_RAW_POST_DATA"]; 
    //$file = fopen("data.xml","wb"); 
    $file = fopen("UT_" . $today . ".xml", "wb");
	fwrite($file, $xml); 
    fclose($file); 
    echo($GLOBALS["HTTP_RAW_POST_DATA"]); 
}
else {
$file = fopen($today . ".xml","wb"); 
fwrite($file, $xml); 
fclose($file); 
}

?>