Professional Documents
Culture Documents
Header PHP To
Header PHP To
msexcel;charset=utf
8");
header("Contenttype:application/xmsexcel;charset=utf
8");
header("ContentDisposition:attachment;filename=abc.xls");
header("Expires:0");
header("CacheControl:mustrevalidate,postcheck=0,pre
check=0");
header("CacheControl:private",false);
$file="myfile.xlsx";
header('ContentDisposition:attachment;filename='.$file);
header('ContentType:application/vnd.openxmlformats
officedocument.spreadsheetml.sheet');
header('ContentLength:'.filesize($file));
header('ContentTransferEncoding:binary');
header('CacheControl:mustrevalidate');
header('Pragma:public');