[PHP]讓下載的URL連結不會被直接開啟而是顯示儲存對話框
1 月.10, 2006 in PHP
方法一:
$downloadfile=”somefile.txt”;
header(“Content-disposition: attachment; filename=$downloadfile”);
header(“Content-Type: application/force-download”);
方法二:
Tags: PHP
方法一:
$downloadfile=”somefile.txt”;
header(“Content-disposition: attachment; filename=$downloadfile”);
header(“Content-Type: application/force-download”);
方法二:
Leave a Reply