diff --git a/_include/include_export_users.php b/_include/include_export_users.php index 2e92236..efa39ab 100644 --- a/_include/include_export_users.php +++ b/_include/include_export_users.php @@ -34,8 +34,8 @@ $userAssocArray = $sql->assoc_array(" $filename = "taglista.csv"; $fp = fopen('php://output', 'w'); -ob_end_clean(); fputcsv($fp, array_keys(reset($userAssocArray)), ';'); +ob_end_clean(); header('Content-type: application/csv'); header('Content-Disposition: attachment; filename='.$filename);