note 68505 deleted from function.readfile by betz
| From: | betz@php.net | Date: | Sun, 30 Jul 2006 13:28:20 +0000 |
| Subject: | note 68505 deleted from function.readfile by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-115349@lists.php.net to get a copy of this message | ||
Note Submitter: tivadar dot at freemail dot hu
----
Hi!
I have a problem with php download scripts.
for example:
$file = 'pro.ba.zip';
header('Content-Description: File Transfer');
header('Content-Type: application/force-download');
header('Content-Length: ' . filesize($file));
header('Content-Disposition: attachment; filename=' . basename($file));
readfile($file);
unfortunately there will be a plus "[1]" in the filename under IE6...so the filename will
be pro[1].ba.zip.
with opera it works fine..
how can i resolve the problem??
THX
TIV