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