최근게시물 설정하는데 오류가 납니다.

· 2012-06-17 (일) 01:42:19 · 1653 · 5
답변주신대로 했는데 나타나지 않고 있습니다.

<?=latest("/gnuboard4/skin/latest/basic/latest.skin.php", "notice", 5, 35);?>

메인에 index.php 에 위에처럼 소스입력 했는데

아래처럼 오류메세지가 나옵니다.

Fatal error: Call to undefined function latest() in /www/ronaldo0223.godohosting.com/middle.php on line 48

최근게시물 폴더에 basic 라는 기본 최근게시물 스킨은 있습니다.
notice라는 공지사항 게시판도 글이 몇개 있구요.

맨위에 있는 소스 이외에 다른게 빠진건가요? 아니면 경로설정이 잘못된건가요???
|

댓글 5개

최근글 불러오기전

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

인덱스 상단에 추가해주세요
2012-06-17 (일) 03:04:25
이렇게 나와요.... 괴발자님...

Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/tmp:/www/default/hosting_db:/www/jjong0223.godohosting.com) in /www/jjong0223.godohosting.com/index.php on line 16

Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /www/jjong0223.godohosting.com/index.php on line 16

Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/jjong0223.godohosting.com/index.php on line 16
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
파일 처음에 윗 처럼 설정하시고 아래처럼 불러보세요.

<? echo latest("basic","notice", 5, 35); ?>
2012-06-17 (일) 12:47:48
이렇게 나와요.... 해바리님....

Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /www/jjong0223.godohosting.com/index.php on line 13

Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/jjong0223.godohosting.com/index.php on line 13

Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/tmp:/www/default/hosting_db:/www/jjong0223.godohosting.com) in /www/jjong0223.godohosting.com/index.php on line 14

Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /www/jjong0223.godohosting.com/index.php on line 14

Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/jjong0223.godohosting.com/index.php on line 14
호스팅 계정의 루트(www폴더 아래) 에 있는index.php 의 13 줄에 있는 '_common.php'
문서를 여느데 실패했는데, 파일이 없거나 디렉토리가 없다.. 입니다.

<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
이경로는 루트에 그누보드가 설치되었을 경우입니다.
_common.php 파일 경로를 확인하시고 바로 잡아주세요?
그부보드 설치경로를 확인해보세요.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
12-06-18 조회 1,087
12-06-18 조회 887
12-06-18 조회 884
12-06-17 조회 1,770
12-06-17 조회 1,113
12-06-17 조회 935
12-06-17 조회 1,725
12-06-17 조회 1,253
12-06-17 조회 1,706
12-06-17 조회 1,107
12-06-17 조회 1,019
12-06-17 조회 1,648
12-06-17 조회 1,136
12-06-17 조회 1,870
12-06-17 조회 1,776
12-06-17 조회 898
12-06-17 조회 1,196
12-06-17 조회 1,654
12-06-17 조회 1,702
12-06-16 조회 1,548