1

최근 게시물달기

· 2013-08-26 (월) 11:10:38 · 1091 · 1
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

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

댓글 1개

밑줄부분은 지우시고요.. 상단에 이렇게 넣어보세요
<?
$g4_path = "./gnuboard4";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
13-08-26 조회 914
13-08-26 조회 838
13-08-26 조회 886
13-08-26 조회 1,647
13-08-26 조회 1,856
13-08-26 조회 2,125
13-08-26 조회 1,072
13-08-26 조회 848
13-08-26 조회 1,607
13-08-26 조회 1,743
13-08-26 조회 1,092
13-08-26 조회 1,318
13-08-26 조회 1,070
13-08-26 조회 1,197
13-08-26 조회 2,191
13-08-26 조회 1,866
13-08-25 조회 1,833
13-08-25 조회 2,706
13-08-25 조회 1,728
13-08-25 조회 1,734