최근게시물 경로 오류 ㅠㅠ > 그누4 질문답변

그누4 질문답변

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

최근게시물 경로 오류 ㅠㅠ 정보

최근게시물 경로 오류 ㅠㅠ

본문

폴더의 구조.

www/index.php
        /bbs (그누보드 설치 폴더)

- 별다를것 없는 기본적인 구조 입니다만
index.php에 최근게시물을 넣고 싶은 경로를 찾지 못하는 오류가 발생합니다.

Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/jinsungcall/www/index.php on line 2

Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/jinsungcall/www/index.php on line 2

Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/jinsungcall/www/index.php on line 3

Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/jinsungcall/www/index.php on line 3


소스는  index.php 최상단에
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

이렇게 넣었습니다.

bbs/_common.php는 기본적으로
<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
라는 소스가 들어있습니다.

어떻게 해야 제대로 나올수 있을지 궁금합니다 ~ㅠㅠ
  • 복사

댓글 전체

그누보드 있는 파일이랑 페이지 문서들을 같은 폴더에 넣어보세요

전 그누보드 아예 밖으로 다 뺐거든요

bbs 안에 있는 걸 밖으로 빼보시면 될듯..
© SIRSOFT
현재 페이지 제일 처음으로