1 Aug 2002 12:02
Re: Re: File::readAll()
Olivier Vanhoucke <root <at> nanouk.org>
2002-08-01 10:02:46 GMT
2002-08-01 10:02:46 GMT
> I think the oppositereally ? $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
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
RSS Feed