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 설정을 할 수 없나요?
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로