Hi,
I was wondering if anyone was experiencing the same problems as me, I have been using a script for forcing the download of a file on several sites - that have all worked extremely well, however since using i.e. 5.5, all these scripts have ceased to work correctly, and produce odd results.
DOES ANYONE KNOW A QUICK WORKAROUND.
This is my script:
if($download){
$fname="files/".$file_ref.".pdf";
$filename=$file_ref.".pdf";
$fp = fopen($fname, "r");
$contents = fread($fp, filesize($fname));
fclose($fp);
header("Content-type: application/RFC822");
header("Content-Disposition: attachment; filename=$filename");
print($contents);
exit;
}
Thanks in advance,
Leigh