최근게시물이 안나오는 이유가 뭐뭐가 있나요? 정보
최근게시물이 안나오는 이유가 뭐뭐가 있나요?본문
메뉴얼 나오는 대로
<?
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
<?
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
댓글 전체
include_once("./_common.php"); <- 현재 방에 _common.php 가 있는가 확인
include_once("$g4[path]/lib/latest.lib.php");
<- _common.php 안에
$g4[path] =".."; 같은 내용이 있는가 확인
경로가 / 가 아니라면
../ 이라든지
./ 이라든지 하는 상대경로가 적히면 됩니다.
이 이상은 글쎄용 경로 문제이니 이 두가지에서 거의 해결 되실듯 하네요
include_once("$g4[path]/lib/latest.lib.php");
<- _common.php 안에
$g4[path] =".."; 같은 내용이 있는가 확인
경로가 / 가 아니라면
../ 이라든지
./ 이라든지 하는 상대경로가 적히면 됩니다.
이 이상은 글쎄용 경로 문제이니 이 두가지에서 거의 해결 되실듯 하네요
루트에 index파일의 최근게시물을 적용할려고 하는데요..
그누보드는 루트에 board라는 폴더 안에 있구요
아무리 해도 안되네요.
그누보드는 루트에 board라는 폴더 안에 있구요
아무리 해도 안되네요.