Using almost every header I could think of - one of the simplest being:
header ("Content-Type: application/octet-stream");
header ("Content-Length: ".filesize("$image_location/".$imageid."".$image) );
header ("Content-Disposition: filename=\"$image\"");
readfile("$image_location/".$imageid."".$image);
I found that both Netscape (4.07) and IE5 add two extra bytes at the end of the files I am sending. Both bytes have the value 0. In fact, it looks as if both browsers ignore the Content-Length header since I can fill in any bogus value I like and the result is the same (filesize after download is the original file size plus 2). I am using php-4.0.0 with apache 3.1.12. Any ideas?
Thanks