Olivier Vanhoucke | 1 Aug 2002 12:02

Re: Re: File::readAll()

> I think the opposite :-)

really ?

$tmp = '';
$fp = fopen($filename, 'r');
while (!feof($fp) {
 $tmp .= fget($fp, 1024);
}
fclose($fp);

(or something like that) will be faster than

$tmp = implode('', file($filename));

I'm not convinced !

Olivier

--

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Gmane