게시판 상단에 죄다 > 그누4 질문답변

그누4 질문답변

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

게시판 상단에 죄다 정보

게시판 상단에 죄다

본문

새롭게 utf-8버전으로 설치했는데 사용자 화면/관리자 화면 상단에 전부다 아래와 같은 내용으로 오류가 팍팍팍 뜨네요... -0-
 
이유가 뭘까요.. -0-;
 
어디를 손봐야 할지는 모르겠어요..
 
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/nuljae/www/board/head.php:1) in /home/hosting_users/nuljae/www/board/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/nuljae/www/board/head.php:1) in /home/hosting_users/nuljae/www/board/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/nuljae/www/board/head.php:1) in /home/hosting_users/nuljae/www/board/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/nuljae/www/board/head.php:1) in /home/hosting_users/nuljae/www/board/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/nuljae/www/board/head.php:1) in /home/hosting_users/nuljae/www/board/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/nuljae/www/board/head.php:1) in /home/hosting_users/nuljae/www/board/head.sub.php on line 38
 
 
 
 
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/nuljae/www/board/head.sub.php:1) in /home/hosting_users/nuljae/www/board/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/nuljae/www/board/head.sub.php:1) in /home/hosting_users/nuljae/www/board/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/nuljae/www/board/head.sub.php:1) in /home/hosting_users/nuljae/www/board/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/nuljae/www/board/head.sub.php:1) in /home/hosting_users/nuljae/www/board/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/nuljae/www/board/head.sub.php:1) in /home/hosting_users/nuljae/www/board/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/nuljae/www/board/head.sub.php:1) in /home/hosting_users/nuljae/www/board/head.sub.php on line 38

댓글 전체

head.sub.php 의 에러나는곳을 올려주세요
head.sub.php의 내용을 하나도 수정하지 않은 상태라면

// 자바스크립트에서 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
이거일텐데.  이게 문제라면 위에 주석문처럼  캐쉬를 가져오는건데 말 그대로 검증 안돼었다네요
주석처리 하심이.. ^^
head.php를 원본으로 설치하면 이상이 없구요..
계속 테스트를 해보니깐 편집을 위해 메모장으로 열었다가 utf-8로 저장만 했다 하면 위와 같은 에러가 터지네요. -0-
어지해야 할지 모르겠어요 -0-;;;
에디터 문제였던 듯 싶습니다. -0-

EmEditor를 편집기에서 Tools > Properties for All Configurations > File > Saving … > Add a Unicode Signature(BOM)의 체크를 해제하고서 저장하니 문제가 해결되네요.

sico님 답변 감사드려요 ^^ 답변 채택해 드립니다. ^^
현재 호스팅이 UTF-8이거든요. 하도 이상해서 여기저기 검색해서 돌아다니다보니 노트패드 등 일반 편집기로 UTF-8 저장시에 "Unicode Signature(BOM)"이라는 부분에 문제가 있을 수 있다고 해서 EmEditor로 저장을 해보니 해결되더라구요. ^^
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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