PDA

View Full Version : XML PHP HELP



jsailor
February 27th, 2007, 06:32 AM
i have the xml file shown below all i want is to add and edit this file
i am uploding image to one folder and also giving caption to the uploding image pls help me urgent

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>stream_images/7.jpg</image>
<caption>Bathroom7</caption>
</pic>
<pic>
<image>stream_images/2.jpg</image>
<caption>Bathroom2</caption>
</pic>
<pic>
<image>stream_images/3.jpg</image>
<caption>Bathroom3</caption>
</pic>
<pic>
<image>stream_images/4.jpg</image>
<caption>Bathroom4</caption>
</pic>
<pic>
<image>stream_images/5.jpg</image>
<caption>Bathroom5</caption>
</pic>
<pic>
<image>stream_images/6.jpg</image>
<caption>Bathroom6</caption>
</pic>
<pic>
<image>stream_images/1.jpg</image>
<caption>Bathroom1</caption>
</pic>
</images>


its and project were flash file display randomly image that is listed in XML

here we need to upload image to the one given folder and at a same time XML file get to edit so pls help me

kinow
February 27th, 2007, 07:29 AM
If you are using PHP5, you may try give a look at the SimpleXML API, it's easy to add nodes. But if you are using an old version, you may prefer to study DOMDocument, I found a great article at IBM's website. I may send you if you get interested.

I sold a identical project few days ago here in Kirupa. If you're interested, I may customize it to you. :snug:

Regards,
Kinow