windows file permission
| From: | Chris Williams | Date: | Wed, 19 Nov 2003 05:02:20 +0000 |
| Subject: | windows file permission | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-170224@lists.php.net to get a copy of this message | ||
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 drwxrwxrwx
I'm guessing I have no idea how Windows permissions work.
Chris