RE: [PHP] Best way to read file
| From: | Maxim Maletsky | Date: | Sun, 11 Aug 2002 22:07:23 +0000 |
| Subject: | RE: [PHP] Best way to read file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112055@lists.php.net to get a copy of this message | ||
Whatever saves you lines of code, difference is not any big.
Sincerely,
Maxim Maletsky
PHP Beginner
www.phpbeginner.com
> -----Original Message-----
> From: Pushkar Pradhan [mailto:pushkar@ERC.MsState.Edu]
> Sent: Monday, August 12, 2002 12:06 AM
> To: Maxim Maletsky
> Cc: 'César Aracena'; 'PHP General List'
> Subject: RE: [PHP] Best way to read file
>
> How about file() since it returns each line in the file as an array?
> It seems like he wants to do some processing on each line of the file.
>
> > readfile() is good enough
> >
> >
> > Sincerely,
> >
> > Maxim Maletsky
> >
> > PHP Beginner
> > www.phpbeginner.com
> >
> >
> > > -----Original Message-----
> > > From: César Aracena [mailto:icaam@icaam.com.ar]
> > > Sent: Sunday, August 11, 2002 6:36 PM
> > > To: PHP General List
> > > Subject: [PHP] Best way to read file
> > >
> > > Hi all.
> > >
> > > I am using readfile() to read and print the entire content of a
.txt
> > > file into a site, but need to use </p> tags to break down the
lines.
> > I
> > > intend to be able, as an Administrator, to edit these text files
> > later.
> > > What is the best way to accomplish this? Should I keep using
> > readfile()
> > > or should I use any ther better way of doing this?
> > >
> > > Thanks in advance,
> > >
> > > Cesar Aracena
> > > CE / MCSE+I
> > > Neuquen, Argentina
> > > +54.299.6356688
> > > +54.299.4466621
> > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> -Pushkar S. Pradhan
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php