Created
February 15, 2015 01:08
-
-
Save rastating/17347e00d4b434f50a81 to your computer and use it in GitHub Desktop.
Troublesome headers
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
header("Content-type: text/x-csv"); # DECLARING FILE TYPE | |
header("Content-Transfer-Encoding: binary"); | |
header("Content-Disposition: attachment; filename=" . $csv_file_name); # EXPORT GENERATED CSV FILE | |
header("Pragma: no-cache"); | |
header("Expires: 0"); | |
print($CSV_FILE_CONTENT); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment