A while ago I started using macromedia flash and I love it. I even designed my own image gallery viewer from the tutorials. What it does is load an XML file and in that XML keeps a directory structure of all the images, folders, and their names. I even designed a small HTM and PHP document to handle the process of uploading images. However I can't seem to figure out how to make PHP append data to XML while still keeping the TREE structure intact.
For Example:
"gallery_tree.xml"
<?xml version="1.0" ?>
<tree>
<node label="Vacation Pic's!">
<node label="AirFrance" src="images/AirFrance.jpg" />
<node label="Eiffel_J" src="images/Eiffel_J.jpg" />
<node label="EiffelLunch" src="images/EiffelLunch.jpg" />
</node>
<node label="Christmas Pic's!">
<node label="Tree" src="images/Tree.jpg" />
</node>
</tree>
Now say the user uploads the file Germany.jpg, the file is automatically placed in the images folder however it needs to be appended to the "Vacation Pic's!" node NOT XMAS PICS, unless the user decides to create a new node then it needs to be a sub element of that. Sorry if I confused everyone..
I have tried almost everything but I can't seem to get it to work right. I also can't use .ASP b/c my server won't support it and the current version of php i have installed is php4 (not allowed to upgrade that either :queasy: .)
Any help of all would be mush appreciated