RE: [PEAR-DEV] File::readAll()
| From: | LIMBOURG Arnaud | Date: | Wed, 31 Jul 2002 09:08:27 +0000 |
| Subject: | RE: [PEAR-DEV] File::readAll() | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-8100@lists.php.net to get a copy of this message | ||
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