PHP writing to XML

So… I’ve scoured the internet and did a search on these forums… and perhaps I’m searching with the wrong terms… but here’s what I’m tryin to do. I have a PHP document that pull a list of images and info from specified XML docs. Now I’m trying to create a client-side GUI (just a basic form) that will allow someone add another node to an the XML document it’s pulling from.

Oh and let it first be known that I don’t have the option to use a SQL Database… or any other type of Database… so XML is the best alternative.

My XML is formatted like any other XML doc:


<images>

<image>
<group>GROUP NAME</group>
<filename>FILE NAME.JPG</filename>
<title>TITLE</title>
<published>06/05/06</published>
</image>

</images>

the attached gif I removed the file names and what not… for confidentiality :stuck_out_tongue: but be assured that it does publish properly.

Have you seen that thread?

so you want to append the file? check out the php page for fwrite() and do a find for “append”.

:lol: i just realized my stupid search function was on a 1wk timeframe…

@bwh2 yea, I knew about fwrite() but I need a physical example of how it works as I’m not a “developer” myself… I try to keep my nose outta it.

@λ is there a way to do that without using the attributes?

I think I may have figured it out… I’ll keep ya posted on my noobishness :stuck_out_tongue:

Thx fellas

Yea ok… so maybe I don’t have it figured out :lol: I did what I thought would need to be done and it doesn’t do what I thought it should do :stuck_out_tongue: :wink:

well, post more questions and maybe us code monkeys can help you. (just be easy on us in the critiques forums:D)

:lol: well if one of you wants to jump on to MSN and hook a brotha up that’d be great… I tried to add you defective but you never accepted my invitation…

you can add me if you want though… it’s not the MSN in my profile though it’s btp@mydomainname.com (mydomainname is my domain name :stuck_out_tongue: not “mydomainname”)

[looks at defective’s footer, looks at simp’s posts, laughs heartily]. anyway, i’ll take a look at this stuff when i get home if you guys don’t already have it figured out.

:lol: yea, well I have no choice in the matter :stuck_out_tongue: I’m against making things harder than what they should be :lol:

oh also… this has to be written in SAX not DOM :hugegrin: