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

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

am 22.08.2007 09:08:31 von vikas batra

--0-1434237916-1187766511=:48962
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

=0A 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 "H=
TTP wrapper does not support writeable connections. ", bcs i gave there ab=
solute 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, =0AVi=
kas Batra=0Acontact: +91-9818439935 =0A Once upon a time th=
ere was 1 GB storage in your inbox. To know the happy ending go to http://h=
elp.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html
--0-1434237916-1187766511=:48962--

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

am 22.08.2007 10:41:38 von Stut

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/

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php