RE: [PHP] Help with files

2004-02-01 Thread Martin Towell
Instead of using "r+", use "w" This will clear the file for you :) > -Original Message- > From: Mr. Austin [mailto:[EMAIL PROTECTED] > Sent: Monday, 2 February 2004 1:51 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Help with files > > > I&#

Re: [PHP] Help with files

2004-02-01 Thread John Nichel
Mr. Austin wrote: I'm not entirely sure why it is that you assume I did not read the manual or the online documentation (which is very thorough). I'm sure Jason has made that assumption because the answer to your question is right there in the manual...under one of the functions you're using. I

Re: [PHP] Help with files

2004-02-01 Thread John Nichel
Mr. Austin wrote: Hello all, I am trying to open a file (successful), then rewrite over the file when it is saved via a form on a website. I have used the following code, yet it simple rewrites from the file pointer, but does not clear the file before writing. Thanks for any help. $buff = fo

Re: [PHP] Help with files

2004-02-01 Thread Mr. Austin
MAIL PROTECTED]> Sent: Sunday, February 01, 2004 8:43 PM Subject: Re: [PHP] Help with files > On Monday 02 February 2004 10:33, Mr. Austin wrote: > > > $buff = fopen("sample.txt", "r+"); >^ > ---+ > >

Re: [PHP] Help with files

2004-02-01 Thread Jason Wong
On Monday 02 February 2004 10:33, Mr. Austin wrote: > $buff = fopen("sample.txt", "r+"); ^ ---+ RTFM to see what other options you can use. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrato