note 31695 added to function.fopen
| From: | nicbos at libero dot it | Date: | Wed, 30 Apr 2003 13:29:38 +0000 |
| Subject: | note 31695 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-47294@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.
--
http://www.php.net/manual/en/function.fopen.php
http://master.php.net/manage/user-notes.php?action=edit+31695
http://master.php.net/manage/user-notes.php?action=delete+31695
http://master.php.net/manage/user-notes.php?action=reject+31695