# Php - dom - xml

**URL:** https://forum.kirupa.com/t/php-dom-xml/331312
**Category:** programming
**Created:** [July 4, 2013, 5:28am UTC](https://forum.kirupa.com/t/php-dom-xml/331312 "2013-07-04T05:28:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![GaGoKoYa](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@GaGoKoYa](https://forum.kirupa.com/u/GaGoKoYa)
#### Post date: [July 4, 2013, 5:28am UTC](https://forum.kirupa.com/t/php-dom-xml/331312/1 "2013-07-04T05:28:19Z")

</div>

Hi ~  
I’ve tried to save an XML that is create/update by using PHP DOM . It works but it can only save under “/tmp/test.xml”, if i try to save it under a different directory it wont work.

I’m using the example from here [http://www.php.net/manual/en/domdocument.save.php](http://www.php.net/manual/en/domdocument.save.php)  
Any help or hint or link to a similar question with answer =) is pretty much appreciated. Thank you.
