note 31695 rejected from function.fopen by spic
| From: | spic@php.net | Date: | Wed, 30 Apr 2003 14:41:53 +0000 |
| Subject: | note 31695 rejected from function.fopen by spic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-47297@lists.php.net to get a copy of this message | ||
hello, i am trying to open and write a file (on win32 platform) with this code:
$scrivi = fopen ("c:\\web\\nbweb.it\\html\\layout\\newsletter.txt", "a") or die
("file won't open");
fwrite ( $scrivi, "$email;\r\n");
fclose ($scrivi);
but i always get this message:
Warning: fopen(c:\web\nbweb.it\html\layout\newsletter.txt) [function.fopen]: failed to create
stream: Permission denied in C:\web\nbweb.it\html\layout\newsletter.php on line 29
file won't open
where am i wrong ??
permission are 777 on files and dirs
thanks, nicola.