# Simple XML Editor occasionally empties XML file

**URL:** <https://forum.kirupa.com/t/simple-xml-editor-occasionally-empties-xml-file/313357>\
**Category:** flash\
**Created:** [August 26, 2010, 9:16pm UTC](https://forum.kirupa.com/t/simple-xml-editor-occasionally-empties-xml-file/313357 "2010-08-26T21:16:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thalamus](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@thalamus](https://forum.kirupa.com/u/thalamus)\
**Post date:** [August 26, 2010, 9:16pm UTC](https://forum.kirupa.com/t/simple-xml-editor-occasionally-empties-xml-file/313357/1 "2010-08-26T21:16:52Z")

</div>

Hello:

I’m working on an XML editor based on the Simple Editor example:  
[http://www.kirupa.com/web/xml/examples/simpleeditor.htm](http://www.kirupa.com/web/xml/examples/simpleeditor.htm)  
using the ActionScript (input\_xml, output\_xml, sendAndLoad, etc.) and the PHP code, using:

$raw\_xml = file\_get\_contents(“php://input”);

Most of the time it works fine. Every once in a while, after Flash has done the sending and loading and is ready for the next edit, the XML file has been emptied on the server (filesize = 0 bytes).

Has anyone else had this problem?  
Is this a PHP or a Flash error that needs to be handled?
