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 설정을 할 수 없나요?
<!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 설정을 할 수 없나요?
댓글 전체
<head>~</head>사이에 넣으시면됩니다
40줄 쯤에
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -->
이렇게 된 부분이 있을거에요. 이부분 대신 넣어보세요.
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -->
이렇게 된 부분이 있을거에요. 이부분 대신 넣어보세요.