附件下载的header

header(‘content-type:application/x-download’);
 header(“Content-Disposition:attachment;FileName=maillist_{$_GET[‘inputdate_start’]}{$_GET[‘inputdate_end’]}{$_GET[‘q’]}.csv”);