# Save XML to file

**URL:** <https://forum.kirupa.com/t/save-xml-to-file/22733>\
**Category:** flash\
**Created:** [June 7, 2003, 8:33pm UTC](https://forum.kirupa.com/t/save-xml-to-file/22733 "2003-06-07T20:33:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roing](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Roing](https://forum.kirupa.com/u/Roing)\
**Post date:** [June 7, 2003, 8:33pm UTC](https://forum.kirupa.com/t/save-xml-to-file/22733/1 "2003-06-07T20:33:03Z")

</div>

Hi I want to save my XML-instance from Flash with PHP.

I know the Flash part. Need help on PHP.

/Martin

---

<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:** [June 7, 2003, 9:22pm UTC](https://forum.kirupa.com/t/save-xml-to-file/22733/2 "2003-06-07T21:22:18Z")

</div>

I believe you need to install a PHP Class on your server for being able to read/edit XML files ☹ I tried before and eveywhere I went said that… so you either have to have direct access to your server to install it, or have your host install it (if they will).

Unless there is another way (I would like to hear that), then you can’t.

---

<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:** [June 7, 2003, 10:03pm UTC](https://forum.kirupa.com/t/save-xml-to-file/22733/3 "2003-06-07T22:03:41Z")

</div>

If i have that class then?

And it would also be a way to save the XML as a txt-file… in the namne file.xml.

How do i save the XML-instance to file?

---

<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:** [June 8, 2003, 2:01am UTC](https://forum.kirupa.com/t/save-xml-to-file/22733/4 "2003-06-08T02:01:57Z")

</div>

If you have that PHP Class, then I don’t know, I haven’t gotten that far 😛 I am not very good at PHP.

Perhaps someone else can help you there.

As for writing it to a .txt file I would assume it works the same as writing anything else to a .txt file, using fopen and fclose. I am not expert there either, sorry :-\ ☹
