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

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

댓글 2개

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

잘 모르시겠다면
텍스트 에디터로 파일 새로 만들고 해당내용을 텍스트 에디터에서 복사해서 넣어보십시오.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");


$g4['title'] = "";
include_once("./_head.php");

?>


이렇게 되어 있습니다
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
14년 전 조회 900
14년 전 조회 989
14년 전 조회 1,214
14년 전 조회 1,522
14년 전 조회 1,537
14년 전 조회 1,048
14년 전 조회 1,552
14년 전 조회 842
14년 전 조회 974
14년 전 조회 1,034
14년 전 조회 880
14년 전 조회 1,289
14년 전 조회 1,559
14년 전 조회 890
14년 전 조회 1,549
14년 전 조회 2,429
14년 전 조회 882
14년 전 조회 1,401
14년 전 조회 1,641
14년 전 조회 760