Blog Archive

취미생활 > 웹프로그래밍
0

PHP에서 excel(엑셀)로 출력하기

@header(“Content-type: application/vnd.ms-excel; charset=utf-8”); @header(“Content-Disposition: attachment; filename=MemberList”.date(“Y-m-d-H:i”).”.xls”); @header(“Content-Description: Sales Forecast”); print(“<meta http-equiv=”Content-Type” content=”application/vnd.ms-excel; charset=utf-8″>”); 이렇게 해주고 내용을 테이블로 구성해주면 된다. 파일명은 변수로 사용자 […]