[thelist] clear a text file using php?

Carl J Meyer cjmeyer at npcc.net
Mon Dec 30 15:23:29 CST 2002


Tom,

http://www.php.net/fopen

$fp = fopen('file.txt', 'w');

RTFM,
Carl

On Mon, 2002-12-30 at 13:14, Tom Dell'Aringa wrote:
> I have a text file on my server that I am writing some data to. I
> want to completly clear out the text file BEFORE I write to it (erase
> whatever is there). Is there a way to do this? I'm using php.
>
> TIA
>
> 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
> --
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !





More information about the thelist mailing list