RE: [PHP] Opening a file to manipulate it

2002-11-20 Thread Tarsy
- Original message - From: "Troy May" <[EMAIL PROTECTED]> To: "@ Edwin" <[EMAIL PROTECTED]> Date: Sat, 16 Nov 2002 21:45:50 -0800 Subject: RE: [PHP] Opening a file to manipulate it Thanks Ed! Yes, another member here told me to use fread(), which is what your

RE: [PHP] Opening a file to manipulate it

2002-11-20 Thread Troy May
bject: Re: [PHP] Opening a file to manipulate it Hello, "Troy May" <[EMAIL PROTECTED]> wrote: > Hello, > > Extreme newbie here (halfway through my first book :) ). I need to open a > file, read the whole file into a variable, manipulate it, and then echo it > to the

Re: [PHP] Opening a file to manipulate it

2002-11-16 Thread Justin French
Hi, on 17/11/02 1:45 PM, Troy May ([EMAIL PROTECTED]) wrote: > > echo $header; ?> > > It writes "Resource id #1" at the top of the page. What is that?! :) You're missing some code -- instead, try this example from the fread() page in the manual: Cheers, Justin French -

Re: [PHP] Opening a file to manipulate it

2002-11-16 Thread @ Edwin
Hello, "Troy May" <[EMAIL PROTECTED]> wrote: > Hello, > > Extreme newbie here (halfway through my first book :) ). I need to open a > file, read the whole file into a variable, manipulate it, and then echo it > to the screen. I'm doing it right from my book and it's not working. > Here's what I

[PHP] Opening a file to manipulate it

2002-11-16 Thread Troy May
Hello, Extreme newbie here (halfway through my first book :) ). I need to open a file, read the whole file into a variable, manipulate it, and then echo it to the screen. I'm doing it right from my book and it's not working. Here's what I have now: It writes "Resource id #1" at the top of the