note 50601 modified in function.fopen by goba
| From: | goba@php.net | Date: | Fri, 10 Jun 2005 10:33:17 +0000 |
| Subject: | note 50601 modified in function.fopen by goba | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-90220@lists.php.net to get a copy of this message | ||
In IIS you must add the group Authenticated Users
with write and modify permissions in the file where
you want to write if you are in a Protected directory
(Basic or Digest authentication) and want to write to
a file in a Unprotected directory (Anonymous Access)
in order to get permission to do that. Otherwise you
will get the message: PHP Warning: fopen(x.txt): failed
to open stream: Permission denied in c:\web\x\x.php on
line 3 PHP Warning: fwrite(): supplied argument is not
a valid stream resource in c:\web\x\x.php on line 10
--was--
In IIS you must add the group Authenticated Users with write and modify permissions in the file
where you want to write if you are in a Protected directory (Basic or Digest authentication) and
want to write to a file in a Unprotected directory (Anonymous Access) in order to get permission to
do that. Otherwise you will get the message: PHP Warning: fopen(x.txt): failed to open stream:
Permission denied in c:\web\x\x.php on line 3 PHP Warning: fwrite(): supplied argument is not a
valid stream resource in c:\web\x\x.php on line 10
http://php.net/manual/en/function.fopen.php