-
엑셀데이터 다운로드 페이지 만들기PHP 2020. 7. 14. 13:38
header( "Content-type: application/vnd.ms-excel; charset=utf-8" );
header( "Content-Disposition: attachment; filename = payment.xls" );
header( "Content-Description: PHP4 Generated Data" );
<table>
<tr>
<td>이름</td>
<td>값</td>
</tr>
</table>
//php 헤더 추가하면 엑셀파일로 다운로드 된다
'PHP' 카테고리의 다른 글
php 접근자 (0) 2020.07.14 php 에러 리포팅(에러보이기) (0) 2020.07.14 php 파일쓰기 (0) 2020.07.14 달력소스 (0) 2020.06.11 PHP 매직함수 사용법 (0) 2020.06.11