$filename = '商品ID_' . $goods['id']; //文件名称
header("Content-type: application/octet-stream"); //定义浏览器输出类型
header("Accept-Ranges: bytes");
header("Content-Disposition: attachment; filename = {$filename}.txt"); //txt文件名称
header("Expires: 0");
header("Cache-Control: must-revalid...
软件开发
阅读(742)
阅读全文