PDA

View Full Version : xml help



slickeye
November 2nd, 2004, 08:54 PM
alright i understand how to display data from xml

what i need is a simple client friendly form that writes to the xml to be displayed at another place

thanks in advance

slickeye
November 3rd, 2004, 11:02 AM
cmon guys

fishbellyrust
November 5th, 2004, 12:51 PM
what do you want? someone to write the form for you? get free answers not free work.

slickeye
November 5th, 2004, 04:22 PM
psh chill out man. i just want someone to point me somewhere where i can learn.
i dont want someone to do work for me.
go straighten out your panties.

λ
November 5th, 2004, 06:23 PM
Writing to a file is pretty simple:



$file = fopen ("file.xml", "w+");
fwrite ($file, $string);
fclose ($file);


that truncates the file to 0 length and writes to it. I wrote something like what you want here (http://www.kirupaforum.com/forums/showthread.php?t=51044&highlight=xml), so you might be able to adapt that, I don't know.

ps: calm it - there's no need to be personal about it... (to the both of you)

slickeye
November 6th, 2004, 01:39 AM
wow man, truly a blessing. i was writing to a database and then converting the db info to xml using a php script. this is much easier. thanks a ton man!