Last active
August 29, 2015 14:24
-
-
Save ikarius6/0472a37169fd4bd51e52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* PHP Headers for CSV File with UTF-8 - By MrJack*/ | |
header("Content-type: text/csv"); | |
header("Content-Disposition: attachment; filename=reporte_ganadores_".date("d-m-Y").".csv"); | |
header("Pragma: no-cache"); | |
header("Expires: 0"); | |
echo "\xEF\xBB\xBF"; //<--- here is the magic | |
echo "WHATÉVER"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment