On Sunday 22 April 2001 21:25, Sigitas Paulavicius wrote:
> Solution #1
>
> $contents = fread ($pointer, 1000000000000);
>
>
>
> Solution #2
>
> $contents="";
> while ($partial = fread ($pointer, 8192)) {
> $contents.=$partial;
> };
But test this before you rely on it. I once did this with (IIRC) PHP
4.0.1 and it read up to several hundred junk bytes after encountering EOF.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"World domination. Fast." (Linus Torvalds about Linux)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]