Saving XML Using PHP and Moodle

Hi All

I was following the brilliant tutorials on here (http://www.kirupa.com/web/xml/examples/simpleeditor.htm) to create some Assesment tools for Moodle where users can modify the questions and answers.

However I am having a great deal of trouble getting it to work on Moodle. I went back to basics and downloaded the sample from the tutorial. I can get it working fine on one of my spare servers but I cant get it to save on my Moodle server.

I’ve checked and rechecked permissions of file and folders, and tweeked away.
Ive tried changing links from relative to absolute as I heard moodle sometimes doesnt like relative links.
Ive tried running it from different locations on Moodle server.

But it never ever saves the XML file on my Moodle server. Has anyone got any suggestions why? I guess its something to do with the PHP rather than the flash?

Any advise greatfully received!