Using Flash & PHP to write to an XML file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
haptic
Forum Newbie
Posts: 11
Joined: Fri Sep 08, 2006 7:21 pm

Using Flash & PHP to write to an XML file

Post 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!
User avatar
wtf
Forum Contributor
Posts: 331
Joined: Thu Nov 03, 2005 5:27 pm

Post 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/
haptic
Forum Newbie
Posts: 11
Joined: Fri Sep 08, 2006 7:21 pm

Post 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.
Post Reply