관리자 > 주문내역출력 시 .xls가 아닌 txt 형식의 파일로 다운됩니다.
그리고 파일을 열면 지원하지 않는 파일 형식이라는 메세지가 뜨는데 무슨 문제인가요ㅜㅜ
include_once(G5_LIB_PATH.'/Excel/php_writeexcel/class.writeexcel_workbookbig.inc.php');
include_once(G5_LIB_PATH.'/Excel/php_writeexcel/class.writeexcel_workbook.inc.php');
include_once(G5_LIB_PATH.'/Excel/php_writeexcel/class.writeexcel_worksheet.inc.php');
header("Content-Type: application/vnd.ms-excel; charset=utf-8; name=\"{$file_name}\"");
header("Content-Disposition: attachment; filename=\"{$file_name}\"");
$fh=fopen($fname, "rb");
fpassthru($fh);
unlink($fname);
사용하는 헤더입니다.
답변 1개
답변을 작성하려면 로그인이 필요합니다.