head_sub.php 에서 오류 구문이 뜨는데 어케 하나요-ㅛ-;; > 그누4 질문답변

그누4 질문답변

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

head_sub.php 에서 오류 구문이 뜨는데 어케 하나요-ㅛ-;; 정보

head_sub.php 에서 오류 구문이 뜨는데 어케 하나요-ㅛ-;;

본문

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

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

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

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

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

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/silfnia/www/head.php:6) in /home/hosting_users/silfnia/www/head.sub.php on line 38
 
이렇게 나오구요..www.kbfsports.com 여기가 작업중인 페이지거든요;;;
헤드만 디자인 바꾸고 서브파일은 그대로 놔뒀는데...뭐가 잘 못 된거죠?

댓글 전체

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

32~38번 라인소스입니다..;;
캐쉬 문제 인거 같습니다.
캐쉬 내용을 삭제하고 새창으로 접근시에는 이상이 없내요.
주석처리한후 사용하여 보세요..^^;

완전하게 수정하는 방법을 제시하지 못하여 죄송합니다.
키워드는 'headers already sent by' 입니다.
기존에도 동일한 질문과 해결방법이 다수 등록되어 있습니다.

1. 문서의 시작 또는 끝 부분에 불필요한 공백은 없는지 점검
[주의할 코딩형태]
<?  나는 공백
... 내용 ...
?> 나도 공백

[수정할 코딩형태]
<?
... 내용 ...
?>

2. header가 불 필요하게 두번 이상 중복되어 있는지 점검.

3. _common.php가 두번이상 기입되었는지,
  _common.php가 페이지 상단에 기재되었음에도 불구하고,
  $g4_path가 동일문서에서 다시 지정되었거나,
  이 반대사항이 적용되어 있는지 검토.

### 대부분은 1.의 경우와 같이 공백에 의한 문제일 가능성이 큽니다.

http://sir.co.kr/bbs/board.php?bo_table=g4_qa&sca=&sfl=wr_subject%7C%7Cwr_content&stx=headers+already&sop=and
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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