head.sub.php에 DTD를 추가하면 에러납니다 > 그누4 질문답변

그누4 질문답변

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

head.sub.php에 DTD를 추가하면 에러납니다 정보

head.sub.php에 DTD를 추가하면 에러납니다

본문

div로 만든 레이아웃이 깨져서 head.sub.php의 첫번째 줄에

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

이런식으로 DTD를 추가하면

아래 메시지가 나옵니다.
Warning: Cannot modify header information - headers already sent by (output started at F:\APM_Setup\htdocs\red2t\head.sub.php:2) in F:\APM_Setup\htdocs\red2t\head.sub.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at F:\APM_Setup\htdocs\red2t\head.sub.php:2) in F:\APM_Setup\htdocs\red2t\head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at F:\APM_Setup\htdocs\red2t\head.sub.php:2) in F:\APM_Setup\htdocs\red2t\head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at F:\APM_Setup\htdocs\red2t\head.sub.php:2) in F:\APM_Setup\htdocs\red2t\head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at F:\APM_Setup\htdocs\red2t\head.sub.php:2) in F:\APM_Setup\htdocs\red2t\head.sub.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at F:\APM_Setup\htdocs\red2t\head.sub.php:2) in F:\APM_Setup\htdocs\red2t\head.sub.php on line 39

아래 코드가 33-39줄의 내용입니다.
header("Content-Type: text/html; charset=$g4[charset]");
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
header("Expires: 0"); // rfc2616 - Section 14.21
header("Last-Modified: " . $gmnow);
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0

뭐가 잘못되서 에러가 나는 걸까요.
그누보드4는 DTD 설정을 할 수 없나요?

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT