# Writing an XML file to the server from a php script

**URL:** <https://forum.kirupa.com/t/writing-an-xml-file-to-the-server-from-a-php-script/150484>\
**Category:** programming\
**Created:** [June 7, 2005, 8:45pm UTC](https://forum.kirupa.com/t/writing-an-xml-file-to-the-server-from-a-php-script/150484 "2005-06-07T20:45:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alampe](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@alampe](https://forum.kirupa.com/u/alampe)\
**Post date:** [June 7, 2005, 8:45pm UTC](https://forum.kirupa.com/t/writing-an-xml-file-to-the-server-from-a-php-script/150484/1 "2005-06-07T20:45:18Z")

</div>

OK so I’ve followed the tutorial on how to output XML from a MYSQL database through php…

Its all working great but what I need to do now is automatically write that file on the server.

Any help would be very much appreciated. I know its probably straight forward…
