I am trying to export MySQL data to CSV file. It works fine on all browsers, but having issue only on MAC system. The file gets downloaded as filename.csv.xls which should be filename.csv I have tried all possible solutions but nothing seems to work. am I missing something here? Below is the source code.
<?php
header("Content-type: application/vnd.ms-excel"); 
header("Content-Disposition:csv" . date("Y-m-d")); 
header( "Content-disposition: filename="file.csv");
print $csv_output;
exit;
?>
Thanks
