Web/PHP
엑셀 다운로드 헤더
만년초보
2010. 5. 28. 10:38
반응형
<?php
header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=test.xls");
header("Content-Description: PHP4 Generated Data");
header( "Content-charset=euc-kr" );
?>
<html>
<head>
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
</head>
<body>
안녕하세요
</body>
</html>
반응형