mauddib
12-30-2008, 01:42 AM
I have an XML file with data like this:
<email plays="6">user@domain.com</email>
I need Flash to update the XML file for how many times the user@domain.com played. So if they played the game 4 times, then "plays" in the XML file should be changed to "2". I know, in order for Flash to change the XML, Flash requires a server side script.
What I need is to figure out how to export the data from Flash to PHP. I also need a PHP script, since I can't find anything short and sweet that just writes a small amount of data to XML.
Also, I'd like to figure out how this whole thing would work with multiple users using the same XML and Flash file. What happens when 2 users are trying to write the XML at the same time or one is trying to read it while another is writing it?
<email plays="6">user@domain.com</email>
I need Flash to update the XML file for how many times the user@domain.com played. So if they played the game 4 times, then "plays" in the XML file should be changed to "2". I know, in order for Flash to change the XML, Flash requires a server side script.
What I need is to figure out how to export the data from Flash to PHP. I also need a PHP script, since I can't find anything short and sweet that just writes a small amount of data to XML.
Also, I'd like to figure out how this whole thing would work with multiple users using the same XML and Flash file. What happens when 2 users are trying to write the XML at the same time or one is trying to read it while another is writing it?