Re: Flush file contents

From: Date: Thu, 15 May 2008 15:39:14 +0000
Subject: Re: Flush file contents
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-274384@lists.php.net to get a copy of this message
On Thu, May 15, 2008 at 11:20 AM, Mário Gamito <gamito@gmail.com> wrote: > Hi, > > How do I open a file and flush all it's contents to insert new ones and > close again ? > > I've browsed through the fopen function aguments and didn't find one that do > this (or I misunderstood one of them). > > Any help would be appreciated. > > Warm Regards, > Mário Gamito > That's what the mode parameter is for. You want "w". http://www.php.net/manual/en/function.fopen.php Andrew

« previous php.general (#274384) next »