PHP下载文件

header(‘Content-type: application/octet-stream’);
header(‘Content-Length: ‘.filesize($fullFilePath));
header(‘Content-Disposition: attachment; filename=”‘.iconv(‘utf-8′,’gb2312’,$fileName).'”‘);
header(‘Content-Encoding: none’);
header(‘Content-Transfer-Encoding: binary’);
readfile($fullFilePath);

终于解决了一个一直悬而未决的问题:ie 浏览器下载文件时文件名乱码。FF、Google正常。