Created
July 31, 2017 09:59
-
-
Save muzafferkoluman/966981939a003142c8f5c8b7f6669c96 to your computer and use it in GitHub Desktop.
Database export excel fix
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-Encoding: UTF-8'); | |
header("Content-Type: application/xls"); | |
header( "Content-disposition: attachment; filename=".$filename.""); | |
header("Pragma: no-cache"); | |
header("Expires: 0"); | |
header('Content-Description: File Transfer'); | |
header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); | |
header('Pragma: public'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment