用PHP做下载嘛:
<?
header("Cache-control: private");
header('Content-Disposition: attachment; filename='.$filename);
header("Content-Type: application/force-download");
readfile($filePath);
?>
<?
header("Cache-control: private");
header('Content-Disposition: attachment; filename='.$filename);
header("Content-Type: application/force-download");
readfile($filePath);
?>
以前我也遇过同样问题!在IE的选项或FTP软件里设一下就行了!
To vivanboy:
為甚麼它只下載該頁面,而不是我要下載的內容,比如我要下載swf文件和gif文件,應該如何修改?