note 68505 added to function.readfile
| From: | tivadardotatfreemaildothu at osu1 dot php dot net | Date: | Sun, 30 Jul 2006 13:20:27 +0000 |
| Subject: | note 68505 added to function.readfile | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115346@lists.php.net to get a copy of this message | ||
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
----
Server IP: 195.228.154.4
Probable Submitter: 81.183.192.120
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.readfile.php
Edit -- http://master.php.net/note/edit/68505
Del: integrated -- http://master.php.net/note/delete/68505/integrated
Del: useless -- http://master.php.net/note/delete/68505/useless
Del: bad code -- http://master.php.net/note/delete/68505/bad+code
Del: spam -- http://master.php.net/note/delete/68505/spam
Del: non-english -- http://master.php.net/note/delete/68505/non-english
Del: in docs -- http://master.php.net/note/delete/68505/in+docs
Del: other reasons-- http://master.php.net/note/delete/68505
Reject -- http://master.php.net/note/reject/68505
Search -- http://master.php.net/manage/user-notes.php