well, i really can't confirm what your seeing. but that is why i orginally
started this topic. i will do some tests..
are you setting headers before output? i just ran into another problem..
when downloading a .tar file it just returns an empty .tar file.. seems to
work fine with .exe, .zip, tar.gz, but not .tar
any ideas?
this is what im using:
header('Content-type: application/octet-stream');
header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Content-transfer-encoding: binary');
header('Content-Disposition: attachment; filename="' . $file['type'] . '"');
header('Content-Length: ' . filesize($file['path'] . $file['type']));
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
----- Original Message -----
From: "Robin Getz" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, January 01, 2005 9:38 PM
Subject: RE: [PHP] handling large files w/readfile
> Robin Getz wrote:
> >My next experiment is:
> >============================
> >$buff = "0";
> >while (!feof($fp)) {
> > $buff = fread($fp, 4096);
> > print $buff;
> >}
> >unset($buff);
> >fclose ($fp);
> >============================
>
> Nope that doesn't work either - came back, and saw apache processes that
> were +450Meg. Changed it back to apache redirection for now.
>
> If anyone has __any__ suggestions, I am more than happy to try. I would
> like to get this figured out.
>
> Thanks
> -Robin
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php