Page 1 of 1

Using Flash & PHP to write to an XML file

Posted: Fri Sep 08, 2006 7:29 pm
by haptic
Hi,
I'm endeavoring on a project that will have a flash-based input form that will send the forms contents to a php document that will write these as a new node in an xml file.
This xml file will then be read back into a different aspect of the flash application and converted into an informational interface.

I am experienced in flash and xml but have little (but still some) experience with php. What is the simplest way to have php create this new node and append it (at the top would be preferable) for each submission?
Can anyone help me or point me in the right direction please?
If there is a simpler method I would be interested in other options as well.

Thanks!

Posted: Fri Sep 08, 2006 7:34 pm
by wtf
You should probably write to database then generate xml from database. You could also send xml direclty from Flash to PHP. Regardless, db is the way to go. To accomplish this, you'll have to use LoadVars object to send data out to php. In php you'll pick up the values and write to db/file whatever you decide. Check out http://www.kirupa.com you'll find plenty on flash/php/xml or http://flash-db.com/

Posted: Fri Sep 08, 2006 10:09 pm
by haptic
thank you for pointing me in the right direction. I've found some good information. I just hope I can pull it off, my experience with mySQL is very limited. But it seems like a simple scenario.