최근게시물이 안나오는 이유가 뭐뭐가 있나요?

· 15년 전 · 1540 · 2
메뉴얼 나오는 대로
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.

echo latest("basic_red", "qq", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>


경로 맞쳐줘서 test.html로 웹에 불러들여봤는데요..
아래와 같은 에러가 뜨네요.

설치는 루트 board폴더에 했구요

루트에 test.html에 했구요..

Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/pdtwang/html/test.html on line 2

Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/share/pear') in /web/home/pdtwang/html/test.html on line 2

Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/pdtwang/html/test.html on line 3

Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/share/pear') in /web/home/pdtwang/html/test.html on line 3

Fatal error: Call to undefined function latest() in /web/home/pdtwang/html/test.html on line 5
|

댓글 2개

include_once("./_common.php"); <- 현재 방에 _common.php 가 있는가 확인

include_once("$g4[path]/lib/latest.lib.php");

<- _common.php 안에
$g4[path] =".."; 같은 내용이 있는가 확인
경로가 / 가 아니라면
../ 이라든지
./ 이라든지 하는 상대경로가 적히면 됩니다.

이 이상은 글쎄용 경로 문제이니 이 두가지에서 거의 해결 되실듯 하네요
루트에 index파일의 최근게시물을 적용할려고 하는데요..
그누보드는 루트에 board라는 폴더 안에 있구요

아무리 해도 안되네요.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
15년 전 조회 1,021
15년 전 조회 1,421
15년 전 조회 1,518
15년 전 조회 2,149
15년 전 조회 966
15년 전 조회 1,648
15년 전 조회 1,127
15년 전 조회 1,073
15년 전 조회 1,535
15년 전 조회 1,541
15년 전 조회 1,430
15년 전 조회 1,418
15년 전 조회 1,518
15년 전 조회 957
15년 전 조회 1,740
15년 전 조회 1,145
15년 전 조회 1,515
15년 전 조회 1,507
15년 전 조회 1,600
15년 전 조회 1,383
🐛 버그신고