-
- header("Content-type: application/octet-stream");
- header("Content-Disposition: attachment; filename=vote".time().".csv; charset=utf-8") ;
Copy code
If it is utf-8, you must output the BOM information first, remember:
-
- echo "/xEF/xBB/xBF".$output;
Copy code
|