s

최근게시물 오류 다시한번 올립니다. 도움부탁드려요.

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 : http://lguard.com

오류내용 : Warning: Cannot modify header information - headers already sent by (output started at /free/home/lguard/html/index.php:6) in /free/home/lguard/html/lib/common.lib.php on line 109

처음 접속시에 이러한 오류가 나옵니다.

게시판 관련 페이지로 이동했다가 다시 메인으로 돌아오면 오류가 사라집니다만,
처음접속하는 컴퓨터에서는 저 오류가 다시 나옵니다.

index 최근게시물 인클루드 소스는 메뉴얼보고 그대로 했는데요.
최근게시물 인클루드 부분 소스입니다.

<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.

echo latest("basic", "notice", 7, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
|

댓글 3개

header() 가 두번 선언이 되었는데요 ? 소스를 보시면 ....

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>(주)라이프가드에 오신걸 환영합니다.</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="img/left_bg.jpg">&nbsp;</td>
<td width="1015"><table width="1015" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="1015" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="http://lguard.com"><img src="img/logo2.jpg" width="276" height="105" border="0" /></a></td>
<td width="561">

아래.... 이건 또 뭐죠 ?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>Untitled Document</title>
<style type="text/css">
common.php 의

//-------------------------------------------
// SESSION 설정
//-------------------------------------------
ini_set("session.use_trans_sid", 0); // PHPSESSID를 자동으로 넘기지 않음
ini_set("url_rewriter.tags",""); // 링크에 PHPSESSID가 따라다니는것을 무력화함 (해뜰녘님께서 알려주셨습니다.)

부분에서

ini_set("session.use_trans_sid", 0); // PHPSESSID를 자동으로 넘기지 않음

을 주석처리 해보시지요.

아마도 서버설정(php.ini)에서 이미 session.use_trans_sid 값을 0으로 설정해 놓았는데 또...
확실히는 잘모르지만..ㅠㅠ
해결했습니다..도움주신분들 감사합니다.

index 파일을 head/tail 무시하고 새로 생성해서 제작했었는데.

head/tail 각각 지정해주고 원래 index 파일 넣어주니 오류가 사라졌네요..

아마 경로 문제였던거같습니다.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
16년 전 조회 910
16년 전 조회 868
16년 전 조회 822
16년 전 조회 940
16년 전 조회 1,072
16년 전 조회 1,531
16년 전 조회 1,053
16년 전 조회 862
16년 전 조회 947
16년 전 조회 1,019
16년 전 조회 2,492
16년 전 조회 961
16년 전 조회 1,001
16년 전 조회 797
16년 전 조회 964
16년 전 조회 743
16년 전 조회 772
16년 전 조회 1,512
16년 전 조회 996
16년 전 조회 959
🐛 버그신고