[thelist] clear a text file using php? [solved]

Tom Dell'Aringa pixelmech at yahoo.com
Mon Dec 30 15:36:01 CST 2002


--- Dave Royer <daveroyer at scoutis.com> wrote:
> Check out the w and w+ modes you can pass to your fopen() call.
> They both
> truncate the file before writing data.
>
> http://www.php.net/manual/en/function.fopen.php

w+ did the trick perfectly, thanks!

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