RE: FN-FORUM: PHP Download script
date posted 9th January 2008 11:52
Graham Stark wrote:
>the code for streaming the file is below.
>
>$fp=fopen($filename,'r');
>while(!feof($fp)) {
> $buf = fread($fp, 4096);
> print $buf;
>}
>fclose($fp);
Have you tried $fp=fopen($filename,'rb'); to ensure that the file is opened
as a binary file?
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.17.13/1214 - Release Date: 08/01/2008
13:38