hello =)
when i download files using the code below with mozilla everything works fine - with IE (5) i have the following problem:
when the file is very small - IE adds some of the html code to the file - i think it got something to do with the content length, but i don't really understand it ... i hope someone else already exprienced this prob 😛
code:
ob_start();
header("Content-type: text/plain");
header("Content-Disposition: attachment; filename=\"".$dlname."\"");
header("Content-Length: ".filesize($filename));
$hFPi = fopen ($filename, "rb");
$sBuf = fread ($hFPi, filesize($filename));
echo $sBuf;
fclose($hFPi);
ob_end_flush();
thanks 4 ur help ! =)