Page 1 of 1

error message help

Posted: Wed Jul 28, 2004 11:07 pm
by fresh
hey,

I have been getting this error message a lot lately and I have no idea what it means or how I could fix it, here it is:
Warning: fopen(http://blah.com/winners/win09.txt): failed to open stream: HTTP wrapper does not support writeable connections. in /home/blah/public_html/members/crychal3.php on line 23
Thanks in advance :)

Posted: Wed Jul 28, 2004 11:25 pm
by feyd
you can't write to a url file.

Posted: Wed Jul 28, 2004 11:50 pm
by fresh
so do I have to make the txt file in the same dir as the php file??

Posted: Wed Jul 28, 2004 11:51 pm
by d3ad1ysp0rk
No, you just have to access it via "../../file.txt" instead of site.com/file.txt

etc

Posted: Wed Jul 28, 2004 11:52 pm
by feyd
since it looks like the file is on your server, fopen it with local paths.. then, given the proper permissions, you can write to it.

Posted: Thu Jul 29, 2004 12:01 am
by fresh
oh.. alright, thanks alot :)