Вечер добрый, помогите решить проблему
Этим кодом я формирую xml и посылаю его в php

Код:
sendComments = function () {
var commentXML:XML = new XML();
var headers:Array = new Array("Content-Type", "text/plain", "X-ClientAppVersion", "2.0");
commentXML.addRequestHeader(headers);
var commentElement:XMLNode = commentXML.createElement("comment");
commentElement.attributes.name = 1;
commentElement.attributes.currentSlide = 2;
commentElement.attributes.slideshowID = 3;
var commentNode:XMLNode = commentXML.createTextNode("qweqweqwe");
commentElement.appendChild(commentNode);
commentXML.appendChild(commentElement);
commentXML.contentType = "text/xml";
commentXML.sendAndLoad("getxml.php",commentXML);
};
sendComments();
а в php Пишу:

Код:
@$data = $GLOBALS['HTTP_RAW_POST_DATA'];
@$data1 = implode('||',$GLOBALS['HTTP_RAW_POST_DATA']);
$pdfFilePath = "xmldata.txt";
$fd = fopen($pdfFilePath, "a");
fwrite($fd,$data1.'~');
fclose($fd);
запускаю swf, а файл остает пустым.....т.о. запроса к php не выполняется.
что делать?