RE: [PHP] Fastest way to read a file
| From: | Sander Pilon | Date: | Tue, 08 Aug 2000 14:33:26 +0000 |
| Subject: | RE: [PHP] Fastest way to read a file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10673@lists.php.net to get a copy of this message | ||
Try - $contents = join("",file("filename.txt"));
> -----Original Message-----
> From: Martin Thoma [mailto:martin@radiok2r.de]
> Sent: 8 August 2000 16:33
> To: php-general@lists.php.net
> Subject: [PHP] Fastest way to read a file
>
>
> Hello !
>
> I want to read a file into one string. What's the fastest way to do that
> ? With fread/filesize or fgets/eof ?
>
> Regards
>
> Martin
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>