Re: windows file permission
| From: | Burhan Khalid | Date: | Wed, 19 Nov 2003 06:55:28 +0000 |
| Subject: | Re: windows file permission | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170246@lists.php.net to get a copy of this message | ||
Chris Williams wrote:
I am using PHP on Windows NT CGI/FastCGI and am trying to create a text file and then write some data to it. $some_text = "HelloWorld"; $new_file = fopen("myfile.txt", "w"); fputs($new_file, $some_text); fclose($new_file); However I am getting Warning: fopen(myfile.txt): failed to open stream: Permission denied in... I don't usually work on Windows but I checked the file permissons on this folder and they seem to be 777 or drwxrwxrwxIn IIS -- you have to set the permissions to "write" for the folder that you want to your script to be able to write to (from the IIS manager) -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com ----------------------- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing."