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
-----------------------------------------------
고수 님들 조언 부탁드리겠습니다.
====== 오류 문구 입니다 =======
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")?>
요런 코드가 있을건데 이 코드가 해당 파일 최상단에 위치 해야 합니다.
이 코드 위로 공백이라도 들어가 있으면 에러납니다.
잘 모르시겠다면
텍스트 에디터로 파일 새로 만들고 해당내용을 텍스트 에디터에서 복사해서 넣어보십시오.
<? include_once("./_common.php")?>
요런 코드가 있을건데 이 코드가 해당 파일 최상단에 위치 해야 합니다.
이 코드 위로 공백이라도 들어가 있으면 에러납니다.
잘 모르시겠다면
텍스트 에디터로 파일 새로 만들고 해당내용을 텍스트 에디터에서 복사해서 넣어보십시오.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
이렇게 되어 있습니다
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
이렇게 되어 있습니다