note 67601 rejected from function.fopen by nlopess

From: Date: Thu, 08 Jun 2006 22:55:27 +0000
Subject: note 67601 rejected from function.fopen by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-113955@lists.php.net to get a copy of this message
Note Submitter: alexci at gmx dot net ---- Hello, I have a problem with fopen(). For example, php code: [i]<?php $pf = fopen("savedinfo.txt", "w"); ?>[/i] -->error message: Warning: fopen(savedinfo.txt) [function.fopen]: failed to open stream: Permission denied in c:\Inetpub\wwwroot\test\test1.php on line 2 and if the code looks so, I dont recieve any error message: [i]<?php $pf = fopen("savedinfo.txt", "r"); ?>[/i] I can read a file, but I can't write on it. It is not writeable. Why? What should I do? P.S. I use Windows, this means, I don't can use chmod. If I use "wb" the error message is the same. Thank You! I hope, someone can help me. Best regards, Aleskandar

« previous php.notes (#113955) next »