Re: File creation problem (HTTP wrapper does not support writeable connections.)

From: Date: Wed, 22 Aug 2007 08:41:38 +0000
Subject: Re: File creation problem (HTTP wrapper does not support writeable connections.)
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-28384@lists.php.net to get a copy of this message
vikas batra wrote:
i have to create a xml file with some content in it in my site at one folder, when i try to create file with fopen command then it says that "HTTP wrapper does not support writeable connections. ", bcs i gave there absolute path of file , then i tried with relative path then it message me " failed to open stream Permission denied in path of file", can any body give me the solution for this , how can i create a file in my site,
Show us code - we're not mind readers. I would guess that in the first instance you tried to create a file in an http://... location which will not work for precisely the reason the error message gave. In the second instance I would guess that the location of the file you are trying to create is not writeable by the user PHP is running as. What user that is depends on what web server you're using. -Stut -- http://stut.net/

« previous php.windows (#28384) next »