head.php 파일 수정한후 이런경고문구 정보
head.php 파일 수정한후 이런경고문구본문
Warning: Cannot modify header information - headers already sent by (output started at C:\AutoSet\public_html\head.php:1) in C:\AutoSet\public_html\head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at C:\AutoSet\public_html\head.php:1) in C:\AutoSet\public_html\head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at C:\AutoSet\public_html\head.php:1) in C:\AutoSet\public_html\head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at C:\AutoSet\public_html\head.php:1) in C:\AutoSet\public_html\head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at C:\AutoSet\public_html\head.php:1) in C:\AutoSet\public_html\head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at C:\AutoSet\public_html\head.php:1) in C:\AutoSet\public_html\head.sub.php on line 38
페이지 최상단에 저 경고문 문구가 나오는데 그누보드원본 head.php를 쓰면 문제없으나
제가 직접 수정한 head.php만 올리면 저모양이군요.
문제의 head.php 내용은 아래와 같습니다.
------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 889;
?>
<center>
<!-- 상단 배경 시작 -->
<table width="864" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-top:11px; padding-bottom:12px;">
<img src="<?=$g4['path']?>/images/logo_1.gif" width="137" height="48">
</td>
<td style="width:300px; padding-top:42px; float:right;">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<!-- 처음으로 버튼 -->
<td><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/images/home_mn.gif" border="0"></a></td>
<td width="15"><img src="<?=$g4['path']?>/images/side_mn.gif" border="0"></td>
<td><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/images/notice_mn.gif" border="0"></a></td>
<td width="15"><img src="<?=$g4['path']?>/images/side_mn.gif" border="0"></td>
<? if (!$member['mb_id']) { ?>
<!-- 로그인 이전 -->
<td><a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>"><img src="<?=$g4['path']?>/images/login_mn.gif" border="0"></a></td>
<td width="15"><img src="<?=$g4['path']?>/images/side_mn.gif" border="0"></td>
<td><a href="<?=$g4['bbs_path']?>/register.php"><img src="<?=$g4['path']?>/images/join_mn.gif" border="0"></a></td>
<td width="15"><img src="<?=$g4['path']?>/images/side_mn.gif" border="0"></td>
<? } else { ?>
<!-- 로그인 이후 -->
<td><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$g4['path']?>/images/logout_mn.gif" border="0"></a></td>
<td width="15"><img src="<?=$g4['path']?>/images/side_mn.gif" border="0"></td>
<td><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="<?=$g4['path']?>/images/modify_mn.gif" border="0"></a></td>
<td width="15"><img src="<?=$g4['path']?>/images/side_mn.gif" border="0"></td>
<? } ?>
<!-- 최근게시물 버튼 -->
<td><a href="<?=$g4['bbs_path']?>/new.php"><img src="<?=$g4['path']?>/images/comm_mn.gif" border="0"></a></td>
<td width="15"><img src="<?=$g4['path']?>/images/side_mn.gif" border="0"></td>
<td><a href="<?=$g4['bbs_path']?>/new.php"><img src="<?=$g4['path']?>/images/rank_mn.gif" border="0"></a></td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="<?=$table_width?>">
<tr>
<!-- 상단메뉴 시작 -->
<td colspan="2">
<div style="background: url('<?=$g4['path']?>/images/top_bg.gif') repeat-x;">
<img src="<?=$g4['path']?>/images/top_left.gif" width="11" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_1.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_2.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_3.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_4.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_5.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_6.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_7.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_8.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_9.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_right.gif" width="17" border="0">
</div>
</td>
<!-- 상단메뉴 끝 -->
</tr>
<tr><td height="10"></td></tr>
</table>
<!-- 상단 배경 끝 -->
--------------------------------------------------------------------------------------------------------------
여기까지..에요.
Warning: Cannot modify header information - headers already sent by (output started at C:\AutoSet\public_html\head.php:1) in C:\AutoSet\public_html\head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at C:\AutoSet\public_html\head.php:1) in C:\AutoSet\public_html\head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at C:\AutoSet\public_html\head.php:1) in C:\AutoSet\public_html\head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at C:\AutoSet\public_html\head.php:1) in C:\AutoSet\public_html\head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at C:\AutoSet\public_html\head.php:1) in C:\AutoSet\public_html\head.sub.php on line 38
페이지 최상단에 저 경고문 문구가 나오는데 그누보드원본 head.php를 쓰면 문제없으나
제가 직접 수정한 head.php만 올리면 저모양이군요.
문제의 head.php 내용은 아래와 같습니다.
------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 889;
?>
<center>
<!-- 상단 배경 시작 -->
<table width="864" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-top:11px; padding-bottom:12px;">
<img src="<?=$g4['path']?>/images/logo_1.gif" width="137" height="48">
</td>
<td style="width:300px; padding-top:42px; float:right;">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<!-- 처음으로 버튼 -->
<td><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/images/home_mn.gif" border="0"></a></td>
<td width="15"><img src="<?=$g4['path']?>/images/side_mn.gif" border="0"></td>
<td><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/images/notice_mn.gif" border="0"></a></td>
<td width="15"><img src="<?=$g4['path']?>/images/side_mn.gif" border="0"></td>
<? if (!$member['mb_id']) { ?>
<!-- 로그인 이전 -->
<td><a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>"><img src="<?=$g4['path']?>/images/login_mn.gif" border="0"></a></td>
<td width="15"><img src="<?=$g4['path']?>/images/side_mn.gif" border="0"></td>
<td><a href="<?=$g4['bbs_path']?>/register.php"><img src="<?=$g4['path']?>/images/join_mn.gif" border="0"></a></td>
<td width="15"><img src="<?=$g4['path']?>/images/side_mn.gif" border="0"></td>
<? } else { ?>
<!-- 로그인 이후 -->
<td><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$g4['path']?>/images/logout_mn.gif" border="0"></a></td>
<td width="15"><img src="<?=$g4['path']?>/images/side_mn.gif" border="0"></td>
<td><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="<?=$g4['path']?>/images/modify_mn.gif" border="0"></a></td>
<td width="15"><img src="<?=$g4['path']?>/images/side_mn.gif" border="0"></td>
<? } ?>
<!-- 최근게시물 버튼 -->
<td><a href="<?=$g4['bbs_path']?>/new.php"><img src="<?=$g4['path']?>/images/comm_mn.gif" border="0"></a></td>
<td width="15"><img src="<?=$g4['path']?>/images/side_mn.gif" border="0"></td>
<td><a href="<?=$g4['bbs_path']?>/new.php"><img src="<?=$g4['path']?>/images/rank_mn.gif" border="0"></a></td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="<?=$table_width?>">
<tr>
<!-- 상단메뉴 시작 -->
<td colspan="2">
<div style="background: url('<?=$g4['path']?>/images/top_bg.gif') repeat-x;">
<img src="<?=$g4['path']?>/images/top_left.gif" width="11" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_1.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_2.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_3.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_4.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_5.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_6.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_7.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_8.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_side.gif" width="27" border="0">
<a href="<?=$g4['bbs_path']?>/"><img src="<?=$g4['path']?>/images/top_9.gif" border="0"></a>
<img src="<?=$g4['path']?>/images/top_right.gif" width="17" border="0">
</div>
</td>
<!-- 상단메뉴 끝 -->
</tr>
<tr><td height="10"></td></tr>
</table>
<!-- 상단 배경 끝 -->
--------------------------------------------------------------------------------------------------------------
여기까지..에요.
댓글 전체

include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
이부분 중에 head.sub.php와 중복되는 부분이 있는지 보세요
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
이부분 중에 head.sub.php와 중복되는 부분이 있는지 보세요

if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
이거 빼세요..
이거 빼세요..
알고보니 인코딩관련 문제더군요. 평소에 에디트플러스 사용했었는데 이제 EMeditor사용하게 되었네요.
전에 에디트플러스 설정을 해준적이 있는데 그문제인지는 몰라도 파일저장방식 문제더군요.
전에 에디트플러스 설정을 해준적이 있는데 그문제인지는 몰라도 파일저장방식 문제더군요.