common.php 부분 에러입니다 고수님들 도움좀 주세요 > 그누4 질문답변

그누4 질문답변

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

common.php 부분 에러입니다 고수님들 도움좀 주세요 정보

common.php 부분 에러입니다 고수님들 도움좀 주세요

본문

메인 화면 젤상단 부분에 저런 문구 에러가 발생합니다 도움좀 부탁드리겠습니다.

====== 오류 문구 입니다 =======

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/fastercokr/www/index.php:1) in /home/hosting_users/fastercokr/www/common.php on line 8
 
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/fastercokr/www/index.php:1) in /home/hosting_users/fastercokr/www/head.sub.php on line 32
 
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/fastercokr/www/index.php:1) in /home/hosting_users/fastercokr/www/head.sub.php on line 34
 
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/fastercokr/www/index.php:1) in /home/hosting_users/fastercokr/www/head.sub.php on line 35
 
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/fastercokr/www/index.php:1) in /home/hosting_users/fastercokr/www/head.sub.php on line 36
 
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/fastercokr/www/index.php:1) in /home/hosting_users/fastercokr/www/head.sub.php on line 37
 
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/fastercokr/www/index.php:1) in /home/hosting_users/fastercokr/www/head.sub.php on line 38
 
====== 이렇게 나왔어요 =========

========  common.php  =========
// 보안설정이나 프레임이 달라도 쿠키가 통하도록 설정
header('P3P: CP="ALL CURa ADMa DEVa TAIa OUR BUS IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC OTC"');
  ======== 8줄 내용입니다 =========

------ head.sub.php 줄 내용 -------------------
// 캐쉬의 내용을 가져옴. 완전한지는 검증되지 않음
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

-----------------------------------------------
고수 님들 조언 부탁드리겠습니다.
  • 복사

댓글 전체

index.php 파일 최상단에
<? include_once("./_common.php")?>
요런 코드가 있을건데 이 코드가 해당 파일 최상단에 위치 해야 합니다.
이 코드 위로 공백이라도 들어가 있으면 에러납니다.

잘 모르시겠다면
텍스트 에디터로 파일 새로 만들고 해당내용을 텍스트 에디터에서 복사해서 넣어보십시오.
© SIRSOFT
현재 페이지 제일 처음으로