List Info

Thread: note 68505 added to function.readfile




note 68505 added to function.readfile
user name
2006-07-30 13:20:27
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 -- ht
tp://www.php.net/manual/en/function.readfile.php
Edit        -- http://master.p
hp.net/note/edit/68505
Del: integrated  -- ht
tp://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://m
aster.php.net/note/delete/68505/spam
Del: non-english -- h
ttp://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://ma
ster.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

note 68505 deleted from function.readfile by betz
user name
2006-07-30 13:28:20
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

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )