index.php 만 수정하면 오류가 뜹니다. 정보
index.php 만 수정하면 오류가 뜹니다.
본문
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest("basic", $row['bo_table'], 10, 70);
echo "<p>\n";
}
?>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
index.php 그대로 두면 아주 잘나옵니다.
그런데, index.php 가운데부분을 지우고
메인부분을
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="635" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="635" height="197" colspan="2">
<table cellpadding="0" cellspacing="0" width="634">
<tr>
<td width="355" height="13" colspan="2"><span style="font-size:1pt;"> </span></td>
<td width="278" height="13"><span style="font-size:1pt;"> </span></td>
</tr>
<tr>
<td width="348" height="172">
<p align="center"><span style="font-size:9pt;">공지사항</span></p>
</td>
<td width="6" height="172"><span style="font-size:9pt;"> </span></td>
<td width="278" height="172" bgcolor="#F7F7F7">
<p align="center"><span style="font-size:9pt;">배너들어갈 위치</span></p>
</td>
</tr>
<tr>
<td width="348" height="14"> </td>
<td width="6" height="14"> </td>
<td width="278" height="14" bgcolor="white"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="320" height="177">
<p align="center"><span style="font-size:9pt;">최근게시물</span></p>
</td>
<td width="315" height="177">
<p align="center"><span style="font-size:9pt;">최근게시물</span></p>
</td>
</tr>
<tr>
<td width="320" height="192">
<p align="center"><span style="font-size:9pt;">최근게시물</span></p>
</td>
<td width="315" height="192">
<p align="center"><span style="font-size:9pt;">최근게시물</span></p>
</td>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
이렇게 작성했는데,
Warning: Cannot modify header information - headers already sent by (output started at / home1/homepage/public_html/hp/index.php:1) in/ home1/homepage/public_html/hp/common.php on line
Warning: Cannot modify header information - headers already sent by (output started at / home1/homepage/public_html/hp/index.php:1) in/ home1/homepage/public_html/head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at / home1/homepage/public_html/hp/index.php:1) in/ home1/homepage/public_html/head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at / home1/homepage/public_html/hp/index.php:1) in/ home1/homepage/public_html/head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at / home1/homepage/public_html/hp/index.php:1) in/ home1/homepage/public_html/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at / home1/homepage/public_html/hp/index.php:1) in/ home1/homepage/public_html/head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at / home1/homepage/public_html/hp/index.php:1) in/ home1/homepage/public_html/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at / home1/homepage/public_html/hp/index.php:1) in/ home1/homepage/public_html/head.sub.php on line 38
이렇게뜹니다.
index.php 가운데만 살짝만 바꿔도 바로 저런 오류가 뜨네요..
어떻게 수정해야할까요.. 도와주세요
댓글 전체

<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=91341&sca=&sfl=wr_subject||wr_content&stx=bom&sop=and&spt=-27427

무슨말씀인지 이해가 안가요;
다시한번만 설명해주세요 ㅜㅜ
_common.php 파일이 있나요???
없다면 생성해주시고 다음은 _common.php의 내용입니다.
<?
$g4_path = "../board"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>