엑셀로 변환을 해서 받는데요!~

if($type=="excel")
{
header("Content-Type: text/html;charset=ks_c_5601-1987");
header("Content-type: application/vnd.ms-excel");
header("Pragma: no-cache");
header("Content-Disposition: attachment; filename=".$title.".xls");
Header("Content-Transfer-Encoding: binary");
Header("Expires: 0");
header("Content-Description: PHP/INTERBASE Generated Data" );
?>

엑셀로 변환을 해서받는데요!~ 파일이름이 subject가아닌 회원이 아이디값으루 주고싶은데요!~

어떻게 해야되지요? 회원아이디_2008.04.03.xls 이런식으로 자동으로 파일이름을 받고싶습니다..

어떻게 하면 되지요? 고수님들!~~~
|

댓글 2개

header("Content-Disposition: attachment; filename=".$member[mb_id]."_".date('Y.m.d',time()).".xls");
감사합니다!~~~ 후후후후후후
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
17년 전 조회 884
17년 전 조회 1,006
17년 전 조회 1,557
17년 전 조회 1,604
17년 전 조회 1,476
17년 전 조회 968
17년 전 조회 3,230
17년 전 조회 3,347
17년 전 조회 1,518
17년 전 조회 973
17년 전 조회 2,317
17년 전 조회 1,565
17년 전 조회 1,023
17년 전 조회 955
17년 전 조회 1,513
17년 전 조회 1,446
17년 전 조회 1,857
17년 전 조회 1,967
17년 전 조회 817
17년 전 조회 1,639
🐛 버그신고