Hello !
I have a binary-file on my server, which is 17236097 bytes long. You can
download this file with the following script:
Header( "Content-type: $this->mime");
Header( "Content-Disposition: attachment; filename=$filename" );
Header( "Content-Description: My Generated Data" );
$fp = fopen($filename, "r");
while (!feof ($fp))
{ $buffer = fgetc($fp);
print $buffer;
}
fclose($fp);
The downloaded file then on my harddisc is 16723744 bytes long. I tried it also with fgets, fread and set_magic_quotes_runtime(false); - no effect.
Any ideas why some bytes are missing ?
Martin