note 67601 added to function.fopen

From: Date: Thu, 08 Jun 2006 22:45:51 +0000
Subject: note 67601 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-113953@lists.php.net to get a copy of this message
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 ---- Server IP: 217.13.201.10 Probable Submitter: 83.131.39.237 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.fopen.php Edit -- http://master.php.net/note/edit/67601 Del: integrated -- http://master.php.net/note/delete/67601/integrated Del: useless -- http://master.php.net/note/delete/67601/useless Del: bad code -- http://master.php.net/note/delete/67601/bad+code Del: spam -- http://master.php.net/note/delete/67601/spam Del: non-english -- http://master.php.net/note/delete/67601/non-english Del: in docs -- http://master.php.net/note/delete/67601/in+docs Del: other reasons-- http://master.php.net/note/delete/67601 Reject -- http://master.php.net/note/reject/67601 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#113953) next »