Hello,
I have a problem for downloading csv files. I read the past threads about downloading problem. There is a clear answer and I tried it. For IE on win98 and win2000, it works very well, but for IE on winNT server, it dosen't work.
This is a php file, download.php, which I have written:
<?php
$dlpath = $HTTP_SERVER_VARS['PATH_INFO'];
$dlfile = basename($dlpath);
Header('Content-Disposition: attachment; filename="' . $dlfile . '"');
Header('Content-Type: application/octet-stream');
readfile($dlpath);
?>
and I made a php file, csvdl.php, which has a link like:
'http://www.myhost.com/download.php/absolute-path/to/csvfile.csv'
as html code. When I click the link with IE on winNT server, a dialog box for download appears. But, the file I can download is php file, csvdl.php !! On the other hand, I can download csvfile.csv with IE on win98.
I need a help for this problem, please.
Best regards,
Chiyo