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

· 2011-06-05 (일) 07:45:42 · 1116 · 2
메인 화면 젤상단 부분에 저런 문구 에러가 발생합니다 도움좀 부탁드리겠습니다.

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

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")?>
요런 코드가 있을건데 이 코드가 해당 파일 최상단에 위치 해야 합니다.
이 코드 위로 공백이라도 들어가 있으면 에러납니다.

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


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

?>


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

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
11-06-05 조회 1,117
11-06-05 조회 947
11-06-05 조회 1,357
11-06-04 조회 1,624
11-06-04 조회 970
11-06-04 조회 1,630
11-06-04 조회 2,491
11-06-04 조회 946
11-06-04 조회 1,464
11-06-04 조회 1,697
11-06-04 조회 819
11-06-04 조회 890
11-06-04 조회 1,124
11-06-04 조회 1,629
11-06-04 조회 1,099
11-06-04 조회 1,765
11-06-04 조회 1,097
11-06-04 조회 1,631
11-06-04 조회 1,175
11-06-04 조회 2,521