I have a script that takes a key from $_GET[\'key\'] , looks up the location in a database and uses the readfile together with some headers to present a download for the use
Replace this: header("Content-type: application/octet-stream"); with this: header("Content-Type: application/force-download");
header("Content-type: application/octet-stream");
header("Content-Type: application/force-download");
According to this post, IE doesn't normally listen to your headers, and instead looks for itself what you are sending.