|
You have sintax error on this line and that is the reason:
header("Content-Disposition: attachment; filename=\"" . basename($fileaddy))."\"";
It must be (see the closing bracket):
header("Content-Disposition: attachment; filename=\"" . basename($fileaddy)."\"");
You can not to send more than one kind of header. So from this all:
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Type: ".filetype($fileaddy));
... the browser will receive only the last one send:
header("Content-Type: ".filetype($fileaddy));
If you use Firefox, then use some kind of Headers sniffer to see what the browser receivs.
|