Ok... here's the setup I'm on a Mac Powerbook with OS 10.4 with php enabled in the local webserver. I can go to http://127.0.0.1/phptests and successfully run php files. Here is my dilemma: I'm trying to get a phpscript to write to a local file using fwrite("folders.txt", $folder); The problem is it always gives me an error, saying it can't write to the file. I have absolutely no idea what to do now. If I upload all the necessary files to the web, it works fine. I tried entering a chmod command but it won't let me do that. Any suggestions on how to get this to work locally? here's my code: the $folder variable gets its info from a flash movie, and works correctly. It just won't write locally. [code]<?php $folder= $_POST['folder']; $filename = "folders.xml"; $fh = fopen($filename, "w") or die("can't open file"); fwrite($fh, $folder); fclose($fh); ?> [/code]