이상한 오류가 뜨네요?
<?
include_once("./_common.php");
$g4[title] = "제목";
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
내용~~
이런씩으로 되어 있는데
접속하면 맨위에 아래와 같은 오류가 뜨고 내용이 그 아래로 다 나오더라구요..
Warning: Cannot modify header information - headers already sent by (output started at /home/bullro/gnu4/index.php:3) in /home/bullro/gnu4/head.sub.php on line 44
그래서 저게 먼가 확인해보니. 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
이던데 이거 지우니 안나오더라구요.. 저거 지워도 상관없나요?
include_once("./_common.php");
$g4[title] = "제목";
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
내용~~
이런씩으로 되어 있는데
접속하면 맨위에 아래와 같은 오류가 뜨고 내용이 그 아래로 다 나오더라구요..
Warning: Cannot modify header information - headers already sent by (output started at /home/bullro/gnu4/index.php:3) in /home/bullro/gnu4/head.sub.php on line 44
그래서 저게 먼가 확인해보니. 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개
제 경험으로는 head.sub.php파일이 중복된 듯 합니다.
해당 파일에서 head.sub.php 파일이 중복되지 않았나 확인해 보세요.