엑셀 브라우저 호환성 php header 설정

엑셀 브라우저 호환성 php header 설정

더시민 3 1925

$excelsubject=rawurlencode($excelsubject);

    header( "Content-type: application/vnd.ms-excel;" ); 

//header( "Content-Disposition: attachment; filename=제목 ".$excelsubject.".xls" ); 

header( "Content-Disposition: attachment; filename=\"제목 ".$excelsubject.".xls\"; filename*=UTF-8''제목 ".$excelsubject.".xls");


3 Comments