최근게시물 추출 오류 ㅜ_ㅜ > 그누4 질문답변

그누4 질문답변

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

최근게시물 추출 오류 ㅜ_ㅜ 정보

최근게시물 추출 오류 ㅜ_ㅜ

본문

메인에서 최근게시물을 추출하려고 했는데 아래와같이 오류가 나네요
아무리해도 안되고 제가 아는것도 없어서... 제발 알려주세요 ㅜ_ㅜ

Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/tmp/:/DATA/dogmozzi/) in /DATA/dogmozzi/public_html/main.php on line 2

Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /DATA/dogmozzi/public_html/main.php on line 2

Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/home/app/php/lib/php') in /DATA/dogmozzi/public_html/main.php on line 2

Fatal error: Call to undefined function latest() in /DATA/dogmozzi/public_html/main.php on line 16
 



------------ 메인 소스 ----------

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>개모찌 1호</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  <table width="680" border="0" cellspacing="0" cellpadding="0">
    <tr>
          <td align="center" valign="top" style="padding-top:80"><?=latest("naver", "diary", 5, 70)?>
</td>
    </tr>
</table>
</body>
</html>
  • 복사

댓글 전체

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

위에서 latest.lib.php파일을 불러오지 못해서 생성되는 에러입니다.

_common.php파일에서 $g4_path파일경로가 정확한지 확인해보세요.
© SIRSOFT
현재 페이지 제일 처음으로