ng**********@rediffmail.com (R. Rajesh Jeba Anbiah) wrote in message news:<ab**************************@posting.google. com>...
Kornelius Finkenbein <ko***@web.de> wrote in message news:<bp*************@news.t-online.com>... Thanks for your help, but that didn't solve the problem yet.
I've looked on http://in.php.net/header and searched again in Google,
but I can't find a solution for it.
Perhaps it's the best to eliminate all points in filename except the
last one of course.
I dont' think, it will help you. Just checked phpMyAdmin; it also
has the same problem with zip. If even phpMyAdmin guys couldn't solve
this problem, I don't think it's possible. Anyway, you keep on trying.
Probably some HTTP sniff will be useful to you.
I checked Yahoo! It doesn't have this problem and so worked on
the headers... Finally found the solution!!!! Now, it works fine!!!
<?php
//This file name: download_zip.php
//Tested in IE6
$filename = "rajesh.zip";
header('Content-Type: application/x-zip-compressed;
filename="foo.bar"');
header('Content-Disposition: attachment; filename="' . $filename .
'"');
readfile($filename);
exit;
?>
<!---html file name: test.html--->
<a href="download_zip.php">test</a>
Now, open the test.html and click the link. Please confirm, if
it's work for you.
---
"Believe it or not, patriotism is one of the worst dividing forces"
Email: rrjanbiah-at-Y!com