note 44052 rejected from function.readfile by tomsommer
| From: | tomsommer@php.net | Date: | Tue, 13 Jul 2004 18:38:50 +0000 |
| Subject: | note 44052 rejected from function.readfile by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73180@lists.php.net to get a copy of this message | ||
Note Submitter: marc@navsim.com
----
I setup a download using the following:
header("Content-type: application/force-download");
header("Content-Transfer-Encoding: Binary");
header("Content-length: ".filesize($GenFile));
header("Content-disposition: attachment; filename=\"" . basename($GenFile) .
"\"");
@readfile("$GenFile");
When I click open from from the download window in Internet Explorer, the window will appear again
and I have to click open again. Does anybody know what this problem is?
Thanks