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
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 여기가 작업중인 페이지거든요;;;
헤드만 디자인 바꾸고 서브파일은 그대로 놔뒀는데...뭐가 잘 못 된거죠?
댓글 전체
head.sub.php의 32~38번 라인 소스를 보여주세요..
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번 라인소스입니다..;;
$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
기존에도 동일한 질문과 해결방법이 다수 등록되어 있습니다.
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
나스카님꼬를 채택하셔야 합니다..-ㅇ-;;
공백 무서운 녀석입니다..
물론 ; <-- 이넘도 무섭습니다.. -ㅇ-;;
공백 무서운 녀석입니다..
물론 ; <-- 이넘도 무섭습니다.. -ㅇ-;;