최신글 뽑는 것 좀 알려주세요 ㅠ

notice 게시판 최신글을 뽑아보려고 하는데요...

최신글 스킨은 그냥 기본으로 들어있는 'basic'으로 테스트 해보려고 하는데 안되네요

그누보드는 bbs라는 폴더를 만든 후 거기에 설치했구요

어떻게 했냐면 html 파일을 php로 바꾸고 <body> 바로 아랫부분에

<?
include_once("_common.php");
include_once("lib/latest.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("head.sub.php");
?>


를 추가한 다음에 테이블 중에 나오게 하고픈 부분에

<?=latest("basic", "notice", 5, 30);?>

라고 했거든요.. 근데 페이지를 열면 제일 윗부분에

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

Warning: include_once() [function.include]: Failed opening '_common.php' for inclusion (include_path='.:/usr/lib/php/pear') in /web/home/yeonhaeju/html/index2.php on line 8

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

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

Warning: include_once(/lib/outlogin.lib.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/yeonhaeju/html/index2.php on line 10

Warning: include_once() [function.include]: Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/lib/php/pear') in /web/home/yeonhaeju/html/index2.php on line 10

Warning: include_once(head.sub.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/yeonhaeju/html/index2.php on line 11

Warning: include_once() [function.include]: Failed opening 'head.sub.php' for inclusion (include_path='.:/usr/lib/php/pear') in /web/home/yeonhaeju/html/index2.php on line 11

이런 에러들이 좍 나오고;

최신글 뽑으려고 했던 부분엔

Fatal error: Call to undefined function latest() in /web/home/yeonhaeju/html/index2.php on line 40

라고 나오네요.. 경로를 못찾아서 그런 건가요? ㅠ

아 옛날엔 쉽게 했던 거 같은데 잘 모르겠네요;; 도움 부탁드립니다; ㅠㅠ
|

댓글 4개

include_once에 있는 링크들 앞에 /bbs/ <- 이걸 붙여도 안되네요; 음;
답변 감사합니다.. 근데 아직 오류가 나네요 ㅠ

Warning: Cannot modify header information - headers already sent by (output started at /web/home/yeonhaeju/html/index2.php:14) in /web/home/yeonhaeju/html/bbs/common.php on line 8

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

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

Warning: include_once(head.sub.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/yeonhaeju/html/index2.php on line 18

Warning: include_once() [function.include]: Failed opening 'head.sub.php' for inclusion (include_path='.:/usr/lib/php/pear') in /web/home/yeonhaeju/html/index2.php on line 18

index.php 있는 곳에 알려주신 것을 _common.php 로 저장해서 올리는 게 맞나요?

혹시나해서 bbs 폴더에도 넣어봤는데 마찬가지네요 ㅠㅠ
뭔가 다 경로의 문제인 거 같은데... ㅠㅠ

index.php에 삽입한 소스는 맞는 건가요? ㅠㅠ 아 미치겠다;
오오오오오오 됐따 ㅠㅠ
정말 감사합니다 ㅠㅠㅠㅠㅠㅠ
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
17년 전 조회 762
17년 전 조회 1,681
17년 전 조회 1,536
17년 전 조회 758
17년 전 조회 2,155
17년 전 조회 1,152
17년 전 조회 1,521
17년 전 조회 1,550
17년 전 조회 758
17년 전 조회 978
17년 전 조회 826
17년 전 조회 1,576
17년 전 조회 757
17년 전 조회 904
17년 전 조회 976
17년 전 조회 1,455
17년 전 조회 1,554
17년 전 조회 1,085
17년 전 조회 736
17년 전 조회 937