Readfile() Download Issues
| From: | Steven Walker | Date: | Thu, 14 Mar 2002 16:35:17 +0000 |
| Subject: | Readfile() Download Issues | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-88545@lists.php.net to get a copy of this message | ||
Hi,
I'm having trouble supporting Internet Explorer 5.5 and earlier versions in a PHP download script. People are reporting that the file comes out as 'download.htm'.
Here is the code in my download.php:
$len = filesize($file);
header("Content-type: application/zip");
header("Content-Length: $len");
header("Content-Disposition: attachment; filename=$filename");
readfile($file);
Other browsers appear to work fine. An thoughts?
Thanks,
Steven J. Walker
Walker Effects
www.walkereffects.com
steve@walkereffects.com