# Folder Permissions

**URL:** <https://forum.kirupa.com/t/folder-permissions/271194>\
**Category:** programming\
**Created:** [September 19, 2008, 3:46pm UTC](https://forum.kirupa.com/t/folder-permissions/271194 "2008-09-19T15:46:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pod\_clock](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@pod\_clock](https://forum.kirupa.com/u/pod_clock)\
**Post date:** [September 19, 2008, 3:46pm UTC](https://forum.kirupa.com/t/folder-permissions/271194/1 "2008-09-19T15:46:20Z")

</div>

My php knowledge is slim, but I’m trying to output XML from Flash(AS3) and write it to a file via a very simple php script. I can see from my browser’s activity panel that the XML is connecting to the script and it is running, but the file is not being written so it seems like a permissions problem. I have the permissions for the enclosing folder and the folder being written to as 777. The server is running php v5.04. Here’s the script:

\<?php  
$filename = “xml/out.xml”;  
$raw\_xml = file\_get\_contents(“php://input”);

print $raw\_xml;

$fp = fopen($filename, “w”);  
fwrite($fp, $raw\_xml);  
fclose($fp);  
?\>

Thanks for any help.
