최신글에 대한 초보 적인 질문입니다. 정보
최신글에 대한 초보 적인 질문입니다.본문
그누보드 입문자인데 최신글 보이기 하기가 막히는군요.
우선 제 셋팅은 루트에 gnuboard4란 폴더를 만들고 그곳에 보드 설치했습니다.
루트의 인덱스 문서에서 최신글 보이기 하기위해
<?
$g4_path = ".";
include_once("$g4_path/_common.php");
$g4[title] = "";
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
?>
$g4_path = ".";
include_once("$g4_path/_common.php");
$g4[title] = "";
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
?>
<?
echo latest("basic", "notice", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
echo latest("basic", "notice", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
위 두 php문을 입력했는데 아래와 같은 오류 메세지가 나오는 군요. 경로 문제 인듯해서 이것 저것 만져봤지만 증상이 다른뿐 완전히 해결이 안돼네요.
원인을 아시는분 알려주심 감사드려요.
Warning: main(./_common.php) [function.main]: failed to open stream: No such file or directory in /home/tng2380/public_html/index_test.html on line 3
Warning: main() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/lib/php/pear') in /home/tng2380/public_html/index_test.html on line 3
Warning: main(/lib/latest.lib.php) [function.main]: failed to open stream: No such file or directory in /home/tng2380/public_html/index_test.html on line 5
Warning: main() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/lib/php/pear') in /home/tng2380/public_html/index_test.html on line 5
Warning: main() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/lib/php/pear') in /home/tng2380/public_html/index_test.html on line 3
Warning: main(/lib/latest.lib.php) [function.main]: failed to open stream: No such file or directory in /home/tng2380/public_html/index_test.html on line 5
Warning: main() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/lib/php/pear') in /home/tng2380/public_html/index_test.html on line 5
댓글 전체

답변 감사합니다 청도골프님 다른 방법으로 방금 해결 했습니다.
팁란에 "경로" 로을 검색햇더니
http://www.sir.co.kr/bbs/tb.php/g4_tiptech/1966
이글을 참고하니 한방에 해결 돼는군요.
팁란에 "경로" 로을 검색햇더니
http://www.sir.co.kr/bbs/tb.php/g4_tiptech/1966
이글을 참고하니 한방에 해결 돼는군요.