file download/open and ie bug
| From: | David Buerer | Date: | Thu, 05 Sep 2002 14:52:50 +0000 |
| Subject: | file download/open and ie bug | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-115325@lists.php.net to get a copy of this message | ||
I'm using version 6 of IE and Netscape
I'm allowing the user to open/dowload a file from a secure locaiton on our
server. Under Netscape it works great! Under IE, it doesn't work at all.
IE complains about not being able to read from the server.
Anyone know of any workarounds?
here's the command I send:
header("Content-type: {$mimetype[PDF]} \n");
header("Content-transfer-encoding: binary\n");
header("Content-length: " . filesize($fname) . "\n");
readfile($fname);