3일동안 혼자 끙끙대다가 질문올립니다..
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 : http://cometz.hosting.paran.com/
알러뷰님의 텝메뉴최신게시물을 사용하려고하는데 아래와같은 에러가 뜹니다..
Warning: Cannot modify header information - headers already sent by (output started at /DATA/cometz/public_html/_common.php:1) in /DATA/cometz/public_html/common.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at /DATA/cometz/public_html/_common.php:1) in /DATA/cometz/public_html/lib/common.lib.php on line 109
ㅜㅜ
그누보드 파일들은 index.php과 같은 곳에 놓았습니다.
아래건 index.php 입니다.....
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link type="text/css" rel="stylesheet" href="style.css">
<title> UHAK DESIGN -</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<style type="text/css">
.a {background:#413F34;}
.back { background-image: url(images/background.gif);
background-repeat:repeat-x;
background-position:center top;
}
.back2 { background-image: url(images/line2.gif);
background-repeat: repeat-y;
background-position:right ;
}
.back3 { background-image: url(images/all_bot.jpg);
background-repeat:repeat-x;
background-position:center bottom;
.
.
.
.
.
<table width="94%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000"">
<tr>
<td height="155" colspan="3">
<?=tab_list("basic","탭공지테스트중!!","공지사항/FAQ/QA/게시판", "notice,school","1","460*110",5,40);?></td>
</tr>
<tr>
<td height="324" colspan="3"><img src="images/body2.gif" width="782" height="486"></td>
</tr>
</table></td>
</tr>
------------------
_common.php 파일은 아래와같습니다,.
<?
$g4_path = ".";
include_once("$g4_path/common.php");
?>
----------
ㅜㅜ 왜 에러메시지가 뜨는지 알려주세요.
<? 후에 공백없구요
여러게시판에서 본거 참고했는데도 안풀리네요..
처음으로 시도하는거라그런지 정말 막막합니다.
여러 고수님들의 도움이 절실히 필요합니다..
오류 주소 : http://cometz.hosting.paran.com/
알러뷰님의 텝메뉴최신게시물을 사용하려고하는데 아래와같은 에러가 뜹니다..
Warning: Cannot modify header information - headers already sent by (output started at /DATA/cometz/public_html/_common.php:1) in /DATA/cometz/public_html/common.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at /DATA/cometz/public_html/_common.php:1) in /DATA/cometz/public_html/lib/common.lib.php on line 109
ㅜㅜ
그누보드 파일들은 index.php과 같은 곳에 놓았습니다.
아래건 index.php 입니다.....
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link type="text/css" rel="stylesheet" href="style.css">
<title> UHAK DESIGN -</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<style type="text/css">
.a {background:#413F34;}
.back { background-image: url(images/background.gif);
background-repeat:repeat-x;
background-position:center top;
}
.back2 { background-image: url(images/line2.gif);
background-repeat: repeat-y;
background-position:right ;
}
.back3 { background-image: url(images/all_bot.jpg);
background-repeat:repeat-x;
background-position:center bottom;
.
.
.
.
.
<table width="94%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000"">
<tr>
<td height="155" colspan="3">
<?=tab_list("basic","탭공지테스트중!!","공지사항/FAQ/QA/게시판", "notice,school","1","460*110",5,40);?></td>
</tr>
<tr>
<td height="324" colspan="3"><img src="images/body2.gif" width="782" height="486"></td>
</tr>
</table></td>
</tr>
------------------
_common.php 파일은 아래와같습니다,.
<?
$g4_path = ".";
include_once("$g4_path/common.php");
?>
----------
ㅜㅜ 왜 에러메시지가 뜨는지 알려주세요.
<? 후에 공백없구요
여러게시판에서 본거 참고했는데도 안풀리네요..
처음으로 시도하는거라그런지 정말 막막합니다.
여러 고수님들의 도움이 절실히 필요합니다..
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 4개
말 그대로 해달폴더의 _common.php 를 보십시요. 공백이 숨어 있을겁니다. <? ?> 태그 밖에요. 만약 ?> 바로 다음 스페이스가 있다면 음 문제가 되겠지요.
공백이 있으면 쿠키가 형성될 수 없습니다. 그래서 header가 이미 시작되었다라고 나오는겁니다.
파일 _common하고 common.php를 올려주시거나 하시는 방법외에는 쩝
Warning: Cannot modify header information - headers already sent by (output started at /DATA/cometz/public_html/index.php:1) in /DATA/cometz/public_html/common.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at /DATA/cometz/public_html/index.php:1) in /DATA/cometz/public_html/lib/common.lib.php on line 109
이렇게떠요.... 휴.. 오늘도 포기하고 자네요.. 자루스님 도와주셔서 감사합니다..^^
윈도우에서 utf 문서를 서버로 전송할 경우에 눈에 보이지 않는 특수문자가 포함될수 있습니다.
파일을 일단 삭제하시고, 에디터플러스 같은걸로 원격파일을 생성하고, 내용을 붙혀넣기 하면 됩니다.
그런데도..
Warning: Cannot modify header information - headers already sent by (output started at /DATA/cometz/public_html/_common.php:1) in /DATA/cometz/public_html/common.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at /DATA/cometz/public_html/_common.php:1) in /DATA/cometz/public_html/lib/common.lib.php on line 109
ㅡ.ㅜ 도와주셔서 감사합니다..