flash php xml
- Started
- Last post
- 5 Responses
- onehugeeye
hello... I'm trying to create a guest book in flash. no mysql- is there an easy way to add a new child to the xml via php from flash? I have the feeling is a piece of cake but haven't managed... any help appreciated- been reading about the subject but is too alien for me... thanks!
(and this is not a paid job, is a wedding present for a friend, if that helps :) cheers)
working site is on http://www.icewedding.com
- unfittoprint0
It's a question of inserting a line
before the last one of your XML file, something like
like:[guest name="myName"
[comment]mycomment[/comment]
[/guest]
- onehugeeye0
exactly, that's what I want the php to do, so when visitors click send, flash send variables name/coment to php and php puts it into the xml and flash will reload the xml with the new entry- all I need is the php, I have the rest working i.e. flash-xml o_O
- unfittoprint0
use php's fopen to read the file, then search the [/myxmlfile], and replace it with:
[guest name="myName" m"]
[comment]mycomment[/ comment]
[/guest]
[/myxmlfile]
- onehugeeye0
thanks for the links... will check them now! :)
- instantok0
for easy xml editing with php
http://minixml.psychogenic.com/
i used it before to do what you are talking about...works pretty well...you will have to use this in combination with what was posted above (fopen and all that)