Re: File::readAll()
| From: | Olivier Vanhoucke | Date: | Wed, 31 Jul 2002 09:33:47 +0000 |
| Subject: | Re: File::readAll() | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-8101@lists.php.net to get a copy of this message | ||
mmh, yes sure...
Olivier
> If you have to do checks on every line to be sure you don't import crap.
>
> That's the kind of verification i run wheni import big files.
>
> Try to read a 1 Mb file into an array and do an explode ;))))))
>
> > Hi,
> >
> > I think it's more faster to use simply an implode('',
> > @file($filename))
> > instead a loop with File::read.
> >
> > I know, with my code, we could'nt use $lock but is it realy
> > useful in this
> > case ?
> >
> > What do you think about this ?
> >
> > thanks !
> >
> > Olivier
>