XYZ的筆記本
不在 server 儲存檔案,直接下載匯出的 Excel $filename = date("Y-m-d") . ".xls"; header('Content-type: application/vnd.ms-excel'); header('Content-Disposition: attachment; filename="' . $filename . '"'); //...(略)... $objWriter = PHPExcel_IOFactory::createWriter ...