[support] IE and passthru
Fred Jones
fredthejonester at gmail.com
Tue Jun 28 14:58:36 UTC 2011
I am using this code:
// send the right headers
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Length: " . filesize($name));
// dump the picture and stop the script
fpassthru($fp);
to deliver a JPG image for the user to download. The requirements are
that it be done via PHP code. It works in FF but they say in IE it
just shows the image in the browser.
Anyhow know how to get IE to also download it?
Thanks.
More information about the support
mailing list