head.sub.php 파일의 이 부분을 주석 처리하였는데 문제 없나요? 정보
head.sub.php 파일의 이 부분을 주석 처리하였는데 문제 없나요?본문
g4m을 설치하니 사이트 전체에서 페이지 상단에 오류 문구가 떠서...
// 자바스크립트에서 go(-1) 함수를 쓰면 폼값이 사라질때 해당 폼의 상단에 사용하면
// 캐쉬의 내용을 가져옴. 완전한지는 검증되지 않음
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
header() 와 같은 줄만 오류가 떠서 해당줄만 주석처리 했습니다. 이 부분의 오류 문구가 떠서 주석처리를 하니 정상적으로 작동은 하고 있습니다. 다만 보안상이나 기타 기능상의 문제는 없는지 질문드립니다.
오류문구는 다음과 같습니다.
Warning: Cannot modify header information - headers already sent by (output started at /html/extend/._g4m.config.php:1) in /html/head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /html/extend/._g4m.config.php:1) in /html/head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /html/extend/._g4m.config.php:1) in /html/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /html/extend/._g4m.config.php:1) in /html/head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /html/extend/._g4m.config.php:1) in /html/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /html/extend/._g4m.config.php:1) in /html/head.sub.php on line 38
// 자바스크립트에서 go(-1) 함수를 쓰면 폼값이 사라질때 해당 폼의 상단에 사용하면
// 캐쉬의 내용을 가져옴. 완전한지는 검증되지 않음
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
header() 와 같은 줄만 오류가 떠서 해당줄만 주석처리 했습니다. 이 부분의 오류 문구가 떠서 주석처리를 하니 정상적으로 작동은 하고 있습니다. 다만 보안상이나 기타 기능상의 문제는 없는지 질문드립니다.
오류문구는 다음과 같습니다.
Warning: Cannot modify header information - headers already sent by (output started at /html/extend/._g4m.config.php:1) in /html/head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /html/extend/._g4m.config.php:1) in /html/head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /html/extend/._g4m.config.php:1) in /html/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /html/extend/._g4m.config.php:1) in /html/head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /html/extend/._g4m.config.php:1) in /html/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /html/extend/._g4m.config.php:1) in /html/head.sub.php on line 38
댓글 전체
해더의 선언문 위에는 출력문이나 공백(스페이스)이 생겨선 안됍니당 ~
헤더소스위에 뿌려지는 태그나 공백 등이 없는지 확인하세용~
헤더소스위에 뿌려지는 태그나 공백 등이 없는지 확인하세용~
extend 아래 파일은
<? 이전 ?> 이후 공백 또는 엔터키등이 있으면 안됩니다.
<? 이전 ?> 이후 공백 또는 엔터키등이 있으면 안됩니다.
오늘 살펴보니 g4m 업로드 파일에 문제가 있습니다. 업로드 하신거 삭제하시고
다시 다운받아서 업로드 하시면 됩니다.
다시 다운받아서 업로드 하시면 됩니다.