최근 게시물달기 > 그누4 질문답변

그누4 질문답변

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

최근 게시물달기 정보

최근 게시물달기

본문

index.html에 최근게시물을 두개정도 넣고싶은데


<html> 위에
<?
$g4_path="../gnuboard4";
include_once("../gnuboard4/common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
넣고


출력하고 싶은 부분에
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>

<body>
<?=latest("basic", "게시판명", 5, 70);?>
</body>
</html>

이렇게 넣었는데 오류가 뜨네요ㅠㅠㅠㅠ

혹시나 해서 출력하고싶은 부분에 밑줄 그은 부분을 빼고 넣어봐도 똑같이 오류가 생기네요..







Warning: include_once(../gnuboard4/common.php) [function.include-once]: failed to open stream: No such file or directory in /home1/페이지주소/public_html/index.html on line 3
Warning: include_once() [function.include]: Failed opening '../gnuboard4/common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/페이지주소/public_html/index.html on line 3
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/tmp:/home1/dacoplec) in /home1/페이지주소/public_html/index.html on line 4
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /home1/페이지주소/public_html/index.html on line 4
Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/페이지주소/public_html/index.html on line 4

이거는 맨 위에 뜨는 오류이구요




Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in/home1/페이지주소/public_html/index.html on line 36
Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/페이지주소/public_html/index.html on line 36
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/tmp:/home1/dacoplec) in /home1/페이지주소/public_html/index.html on line 37
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: Operation not permitted in/home1/페이지주소/public_html/index.html on line 37
Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/페이지주소/public_html/index.html on line 37
Fatal error: Call to undefined function latest() in /home1/페이지주소/public_html/index.html on line 45

이건 출력하고싶은 부분에 뜨는 오류입니다....
  • 복사

댓글 전체

밑줄부분은 지우시고요.. 상단에 이렇게 넣어보세요
<?
$g4_path = "./gnuboard4";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
© SIRSOFT
현재 페이지 제일 처음으로