[thelist] writing to file in php problem [solved]

Tom Dell'Aringa pixelmech at yahoo.com
Mon Jan 6 17:23:01 CST 2003


--- Mike Migurski <mike at saturn5.com> wrote:
> Somewhat.
>
> fopen() with the mode set to 'w+' should create the file if it
> doesn't
> exist, so if it's throwing errors right off the bat, that's
> probably an
> issue right there. On the other hand, the '13' you're getting back
> from
> fputs() refers to the number of bytes written, which is correct (13
> chars
> in <html></html>). If you have created the file to begin with, ar
> you sure
> that the file's permissions are set to 666 at minimum?

Cryptically, I changed my URL to the file that I am writing from a
fully qualified URL (http etc) to simply the filename, and bingo, it
worked. I can't imagine why that makes a difference, I'd be curious
to know.

Thanks for the help!

Tom

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the thelist mailing list