Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save muzafferkoluman/966981939a003142c8f5c8b7f6669c96 to your computer and use it in GitHub Desktop.
Save muzafferkoluman/966981939a003142c8f5c8b7f6669c96 to your computer and use it in GitHub Desktop.
Database export excel fix
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