젤

최근게시물 경로 오류 ㅠㅠ

폴더의 구조.

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");
?>
라는 소스가 들어있습니다.

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

댓글 2개

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

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

bbs 안에 있는 걸 밖으로 빼보시면 될듯..
감사합니다~ 반대로 index.php를 안으로도 넣어봐야 겠네요 ~
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
10-11-22 조회 1,053
10-11-22 조회 1,950
10-11-22 조회 922
10-11-22 조회 925
10-11-22 조회 1,310
10-11-22 조회 994
10-11-22 조회 2,991
10-11-22 조회 1,063
10-11-22 조회 1,724
10-11-22 조회 1,566
10-11-22 조회 1,168
10-11-22 조회 1,722
10-11-22 조회 1,721
10-11-22 조회 1,039
10-11-22 조회 1,573
10-11-22 조회 1,174
10-11-22 조회 1,033
10-11-22 조회 1,067
10-11-22 조회 1,441
10-11-22 조회 1,986