# XMLobj.send() to php and save it into mysql

**URL:** https://forum.kirupa.com/t/xmlobj-send-to-php-and-save-it-into-mysql/25907
**Category:** programming
**Created:** [July 17, 2003, 2:30pm UTC](https://forum.kirupa.com/t/xmlobj-send-to-php-and-save-it-into-mysql/25907 "2003-07-17T14:30:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sirupo](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sirupo](https://forum.kirupa.com/u/sirupo)
#### Post date: [July 17, 2003, 2:30pm UTC](https://forum.kirupa.com/t/xmlobj-send-to-php-and-save-it-into-mysql/25907/1 "2003-07-17T14:30:11Z")

</div>

my flash movie generates an xml object that wants to be saved in a database. - from where it can be recalled and read back into flash.

to send the XMLobject to php seems XMLobj.send(“url”); to be the most suitable method. as mentioned in the “xml from flash” tutorial by senocular [http://www.kirupa.com/developer/actionscript/xmlfromflash.htm](http://www.kirupa.com/developer/actionscript/xmlfromflash.htm)

what would follow on the server side would be a script that receives the xml object as it is and saves it into mysql.

unfortunately i don’t know too much about php and couldn’t find an answer in the forum. did i miss something? or how could such a script look like?

in most tutorials it is explained how to handle xmlnodes in php but not how to save the entire xml document… maybe the solution is so simple?

gracias in advance +:rd:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 22, 2003, 1:40pm UTC](https://forum.kirupa.com/t/xmlobj-send-to-php-and-save-it-into-mysql/25907/2 "2003-07-22T13:40:08Z")

</div>

can anyone give me a hint?

is my question

[] too weird, i didn’ understand it

[] quite difficult ey

[] so dull and easy i don’t even want to reply

please choose + cross the appropriate

merci mes amis

🥚

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 22, 2003, 2:18pm UTC](https://forum.kirupa.com/t/xmlobj-send-to-php-and-save-it-into-mysql/25907/3 "2003-07-22T14:18:04Z")

</div>

hm + m

would packing the entire xml string into one variable and sending it to a php script do the j.o.b?

can one trick around like that?

plis lemme know or no

sir . up + o

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 29, 2003, 1:29am UTC](https://forum.kirupa.com/t/xmlobj-send-to-php-and-save-it-into-mysql/25907/4 "2003-07-29T01:29:24Z")

</div>

why would you want to save the xml object as it is? wouldn’t the best way be to parse it out using PHP and save it into mysql. If you want to reconstruct the xml object there are php functions that can help you do just that.

I think the point of xml is to be used as a data structure for the transaction only. That is, the data exists as something on the server and maybe something differently on the client, but you can make the data xml for the journey between the server and the client.

is this making sense or am i way off?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 29, 2003, 7:57am UTC](https://forum.kirupa.com/t/xmlobj-send-to-php-and-save-it-into-mysql/25907/5 "2003-07-29T07:57:25Z")

</div>

hola ahmonra\_ i guess you are perfectly right, xml is used to structure data transactions\_ i am using it to produce frame by frame animations in flash. so it describes where which object has to go etc. it seems xml is very handy for that. however saving such a xml-movie-description doesn’t need to be taken apart on the server\_ will probably only lead to a longer access time.

i’ll try to send the entire xml as one single variable to php soon. will let you know if i got it to work\_ thanks for your reply

ciao
