Hi guys, I'm not too much in the know about IIS hosting and .NET stuff so I'm struggling with a little issue I have. My server supports PHP and I have uploaded the following file and a blank output.xml file: <?php $url = "http://www.website.org/directory/rss?s=676&u=g225"; $data = file_get_contents($url); $file = fopen("output.xml", "w+"); fputs($file, $data); fclose($file); ?> PHP: The script is basically taking the contents of $url and puts it into a file called output.xml. When I run the PHP file, nothing happens. The .XML file doesn't update. I have logged onto my control panel and I have ticked all the boxes for permissions for both the PHP file and the output.xml. I'm thinking either I haven't correctly set the permissions or the "w+" statement is incorrect here: $file = fopen("output.xml", "w+"); Any ideas? Thanks.
You need to have propagated write/modify permissions set for the directory in which you store XML. Assign and propagate the write/modify permission for the folder in question. The User IUSR should have above permission set.