그누보드 최신글 오류 질문입니다 ㅠㅠ 정보
그누보드 최신글 오류 질문입니다 ㅠㅠ본문
메인페이지에 최신글을 불러오려고 하는데 자꾸 에러가 뜨네요ㅠㅠ
index.html 최상단에
<?
include_once("/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
이렇게 넣고
불러올 부분에
<div class="bbs">
<h2 class="bbs_title">
<img alt="공지사항 Notice and Story" src="img/index/txt_notice.gif">
<a href="#" class="btn_more"><img alt="more+" src="img/btn/more.gif"></a>
</h2>
<?=latest("../gnuboard4/skin/latest/xe_latest_01", "notice", 5, 10)?>
</div>
이렇게 넣었거든요..
그랫더니 나오는 오류는
상단엔
Warning: include_once(/_common.php) [function.include-once]: failed to open stream: No such file or directory in ~~
그리고 추출할 부분엔
Fatal error: Call to undefined function latest() in ~~
이렇게 뜨네요..ㅜㅜ 뭐가 잘못된거죠..?
답변주시면 감사하겠습니다.
index.html 최상단에
<?
include_once("/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
이렇게 넣고
불러올 부분에
<div class="bbs">
<h2 class="bbs_title">
<img alt="공지사항 Notice and Story" src="img/index/txt_notice.gif">
<a href="#" class="btn_more"><img alt="more+" src="img/btn/more.gif"></a>
</h2>
<?=latest("../gnuboard4/skin/latest/xe_latest_01", "notice", 5, 10)?>
</div>
이렇게 넣었거든요..
그랫더니 나오는 오류는
상단엔
Warning: include_once(/_common.php) [function.include-once]: failed to open stream: No such file or directory in ~~
그리고 추출할 부분엔
Fatal error: Call to undefined function latest() in ~~
이렇게 뜨네요..ㅜㅜ 뭐가 잘못된거죠..?
답변주시면 감사하겠습니다.
댓글 전체

<?=latest("../gnuboard4/skin/latest/xe_latest_01", "notice", 5, 10)?>
변경-> <?php echo latest("xe_latest_01", "notice", 5, 10)?>
변경-> <?php echo latest("xe_latest_01", "notice", 5, 10)?>

root 폴더에 _common.php파일이 있는지 확인하세요
그리고
이런식으로 사용하시는게 좋을 것 같습니다
그리고
<?php
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
이런식으로 사용하시는게 좋을 것 같습니다
1. bbs/_common.php를 root로 복사
2. root의 common.php 첫줄 수정
$g4_path='./gnuboard4';
2. root의 common.php 첫줄 수정
$g4_path='./gnuboard4';