View Full Version : Editable xml with php
brndn
October 10th, 2006, 05:06 PM
hi all.
I am looking at building a dynamic gallery in flash using xml.
That part is cool. cause kirupa rocks.
But what i have not been able to find is how i would go about displaying all xml nodes using php.
delete or adding to them from one interface.
can i do that with php and xml or would it pay to employ some mysql databasing to handle it.
heres a diagram of what i am trying to do.
thanks for your advice?
pbrollwitme
October 10th, 2006, 11:04 PM
I personally would go about using the database idea. submit new entries to the database, then use the php to run a query on the database to generate the new xml. I feel it's cleaner/easier that way.
brndn
October 11th, 2006, 12:14 AM
ANy suggestions as to where I will find tuts or info about parsing this kinda data between apps?
pbrollwitme
October 11th, 2006, 02:34 PM
Maybe i'm misunderstaind the question. Do you want to list the diagram you posted above in flash or in php. For example, its fairly easy to create a php page using the while loop to create a list of all the entries in the database with an edit/delete button next to each item. It can also be done in flash, but not as easily. If you were to use the php page to display/edit results as if it were an admin section, the php would regenerate xml each time the information was changed. is that what you are looking for?
brndn
October 11th, 2006, 04:13 PM
yeh php for editing the xml.
flash would handle the display of the items/nodes/graphics etc.
But the php page would be for editing the xml items?
A php admin area is what i am thinking would be easiest.
do you know of any tutorials or examples where i can display items using a while loop?
and delete onpress and conform?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.