hello, I’m new here to the forum, so if I do it wrong just let me know!
I’ve been doing flash for a while and now am integrating XML into the mix which is great. I can pull the xml into flash from a static xml file, but I don’t know how to save info from flash back into an xml file.
I used the simple_editor tutorial from here at kirupa, which includes the php script. and I can get it to turn the xml around and update in flash using sendAndLoad. It’s also loading from the xml, so the path seems correct, but it does not save to the xml file on the server. I’ve got full on permissions for the xml file and the php script (777). Am I missing something else? or is it some not so apparent permissions thing?
here’s the php:
<?php
$filename = “readwrite/simple_edit.xml”;
$raw_xml = file_get_contents(“php://input”);
print $raw_xml;
$fp = fopen($filename, “w”);
fwrite($fp, $raw_xml);
fclose($fp);
?>
thanks in advance
bobj