2015年1月12日 星期一

解决PHP下载乱码问题,word doc 文件等


header('Content-type: application/octet-stream');
header('Content-Disposition: attachment; filename="' . $docno);
ob_clean();
flush();

readfile('http://xxx/cgi-bin/fglccgi/topprod/topcust/help/0/aim/download_doc/' . $docno);

沒有留言:

張貼留言