Re: Flush file contents

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 15, 2008 at 11:20 AM, Mário Gamito <gamito@xxxxxxxxx> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux