사이트 위에 뜨는 에러 메세지 3 줄..원인이 뭘까요? 정보
사이트 위에 뜨는 에러 메세지 3 줄..원인이 뭘까요?본문
Warning: Cannot modify header information - headers already sent by (output started at /home/bombblade/html/index.html:1) in /home/bombblade/html/lib/common.lib.php on line 109
Warning: Cannot modify header information - headers already sent by (output started at /home/bombblade/html/index.html:1) in /home/bombblade/html/lib/common.lib.php on line 109
Warning: Cannot modify header information - headers already sent by (output started at /home/bombblade/html/index.html:1) in /home/bombblade/html/lib/common.lib.php on line 109
Warning: Cannot modify header information - headers already sent by (output started at /home/bombblade/html/index.html:1) in /home/bombblade/html/lib/common.lib.php on line 109
Warning: Cannot modify header information - headers already sent by (output started at /home/bombblade/html/index.html:1) in /home/bombblade/html/lib/common.lib.php on line 109
제 사이트에 처음 접속하는 컴퓨터에서 위와 같은 메세지가 3 줄이 뜹니다...^^;;
모든 페이지에서 다 나타나구요.
로그인을 하거나 로그인 페이지에 한 번 가면 (로그인을 안해도)
그 때부터는 안나타납니다.
한 번 로그인을 했던 컴터라도 쿠키를 지우고, 다시 접속을 하면 또 나타납니다.
왜 그럴까요?
그리고 어떻게 해야 고쳐질까요..흠.
제 index.html 소스입니다.
<?
if ($_SERVER[HTTP_HOST]=="www.plusnote.com") { $index="plusnote.html"; }
elseif ($_SERVER[HTTP_HOST]=="plusnote.com") { $index="plusnote.html"; }
elseif ($_SERVER[HTTP_HOST]=="www.ttns.co.kr") { $index="plusnote.html"; }
elseif ($_SERVER[HTTP_HOST]=="ttns.co.kr") { $index="plusnote.html"; }
elseif ($_SERVER[HTTP_HOST]=="www.booknote.co.kr") { $index="plusnote.html"; }
elseif ($_SERVER[HTTP_HOST]=="booknote.co.kr") { $index="plusnote.html"; }
elseif ($_SERVER[HTTP_HOST]=="www.bizbookcafe.com") { $index="/numz/index.php"; }
elseif ($_SERVER[HTTP_HOST]=="bizbookcafe.com") { $index="/numz/index.php"; }
elseif ($_SERVER[HTTP_HOST]=="www.bizforum.co.kr") { $index="/move1.html"; }
elseif ($_SERVER[HTTP_HOST]=="bizforum.co.kr") { $index="/move1.html"; }
elseif ($_SERVER[HTTP_HOST]=="www.bizseminar.co.kr") { $index="/move.html"; }
elseif ($_SERVER[HTTP_HOST]=="bizseminar.co.kr") { $index="/index.php"; }
?>
<? include($_SERVER["DOCUMENT_ROOT"].$index); ?>
if ($_SERVER[HTTP_HOST]=="www.plusnote.com") { $index="plusnote.html"; }
elseif ($_SERVER[HTTP_HOST]=="plusnote.com") { $index="plusnote.html"; }
elseif ($_SERVER[HTTP_HOST]=="www.ttns.co.kr") { $index="plusnote.html"; }
elseif ($_SERVER[HTTP_HOST]=="ttns.co.kr") { $index="plusnote.html"; }
elseif ($_SERVER[HTTP_HOST]=="www.booknote.co.kr") { $index="plusnote.html"; }
elseif ($_SERVER[HTTP_HOST]=="booknote.co.kr") { $index="plusnote.html"; }
elseif ($_SERVER[HTTP_HOST]=="www.bizbookcafe.com") { $index="/numz/index.php"; }
elseif ($_SERVER[HTTP_HOST]=="bizbookcafe.com") { $index="/numz/index.php"; }
elseif ($_SERVER[HTTP_HOST]=="www.bizforum.co.kr") { $index="/move1.html"; }
elseif ($_SERVER[HTTP_HOST]=="bizforum.co.kr") { $index="/move1.html"; }
elseif ($_SERVER[HTTP_HOST]=="www.bizseminar.co.kr") { $index="/move.html"; }
elseif ($_SERVER[HTTP_HOST]=="bizseminar.co.kr") { $index="/index.php"; }
?>
<? include($_SERVER["DOCUMENT_ROOT"].$index); ?>
한 서버에서 대략 5 ~ 10 개 이상의 사이트를 운영할 생각이라 인덱스를 저렇게 사용하고 있습니다.
// 쿠키변수 생성
function set_cookie($cookie_name, $value, $expire)
{
global $g4;
function set_cookie($cookie_name, $value, $expire)
{
global $g4;
setcookie(md5($cookie_name), base64_encode($value), $g4[server_time] + $expire, '/', $g4[cookie_domain]);
}
}
빨간 부분이 common.lib.php 파일의 109 번째 라인입니다.
제로보드나 다른 게시판을 활용한 사이트에서는 위와 에러 메세지가 안나오고,
그누보드로 만든 사이트에서만 에러메세지가 나옵니다.
새로운 웹사이트를 오픈해야 되는데, 첫 방문자 눈에 에러 메세지가 거창하게 나와서..
사이트의 신뢰도가......... >.<;;;;;;;;;;;;;;;;;;;
고수님들의 도움을 부탁드립니다.. >.<;;;
댓글 전체
한 서버에서 대략 5 ~ 10 개 이상의 사이트를 운영할 생각이라 인덱스를 저렇게 사용하고 있습니다.
보통 virtual host를 이용하지 않나요?
아파치인 경우는 간단히 적용될텐데...
보통 virtual host를 이용하지 않나요?
아파치인 경우는 간단히 적용될텐데...
그런가요?
virtual host 에 대해 알아봐야겠군요.
감사합니다..^^*
virtual host 에 대해 알아봐야겠군요.
감사합니다..^^*