[PHP] 결과물을 엑셀파일로 받기 2004-05-11 20:43:56
Posted on 2009. 4. 28. 17:45
Filed Under Web Programming
<?
header( "Content-type: application/vnd.ms-excel" );
header( "Content-Disposition: attachment; filename=test.xls" );
header( "Content-Description: PHP4 Generated Data" );
?>
두번째 줄 test.xls 는 저장파일 명 입니다.
위의 코드를 결과파일 처음에 넣으주면 됩니다. ^^
반응형