최근게시물 관련 문의 드립니다. 정보
최근게시물 관련 문의 드립니다.
본문
메뉴얼대로 일단 작업하였고 아래와 같이 오류메시지가 나옵니다.
--------------------------------------------------
Warning: include_once(./common.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/gabotour/www/_common.php on line 3
Warning: include_once() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/gabotour/www/_common.php on line 3
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/gabotour/www/test.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/gabotour/www/test.php on line 3
Fatal error: Call to undefined function latest() in /home/hosting_users/gabotour/www/test.php on line 4
............
파일을 호출해서 경로를 지정해주는 방법이 있다고 하는데...
환경을 바꿔서라도 할 수 있으면 좋긴 하지만 제가 궁금한 점은
방법은 있는데 제가 못 찾는게 아닐까 해서요...
타 게시판 같은 경우 헤더에 경로 지정해주고 원하는 곳에서 불러오면 되는 방식이잖아요...
지금 인덱스는 www안 루트에 있고 그누보드 경로는 gnuboard4 거든요...
따로 건드린 것은 없는데... 이리 저리 바꿔봐도 경로가 틀리다고 나와서요...
어떻게 해야 할까요 ㅜㅜ
--------------------------------------------------
Warning: include_once(./common.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/gabotour/www/_common.php on line 3
Warning: include_once() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/gabotour/www/_common.php on line 3
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/gabotour/www/test.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/gabotour/www/test.php on line 3
Fatal error: Call to undefined function latest() in /home/hosting_users/gabotour/www/test.php on line 4
............
파일을 호출해서 경로를 지정해주는 방법이 있다고 하는데...
환경을 바꿔서라도 할 수 있으면 좋긴 하지만 제가 궁금한 점은
방법은 있는데 제가 못 찾는게 아닐까 해서요...
타 게시판 같은 경우 헤더에 경로 지정해주고 원하는 곳에서 불러오면 되는 방식이잖아요...
지금 인덱스는 www안 루트에 있고 그누보드 경로는 gnuboard4 거든요...
따로 건드린 것은 없는데... 이리 저리 바꿔봐도 경로가 틀리다고 나와서요...
어떻게 해야 할까요 ㅜㅜ
댓글 전체
이건 경로 문제입니다.
그누보드는 설치폴더 아래에 index.php 파일이 있도록 되어 있고
여기서부터 다른 파일들을 인클루드 시키도록 되어 있지요.
그런데 index.php 파일이 있는 위치가 변경되니 당연한 결과지요.
아래 문의글에 답변 달아 두었습니다.
그누보드는 설치폴더 아래에 index.php 파일이 있도록 되어 있고
여기서부터 다른 파일들을 인클루드 시키도록 되어 있지요.
그런데 index.php 파일이 있는 위치가 변경되니 당연한 결과지요.
아래 문의글에 답변 달아 두었습니다.

아 그럼 원래 방법이 없는건가요? 말씀해주신 답변 외에는요?;;;
www의 _common.php 를 열어서
$g4_path='./gnuboard4'; 이렇게 해주면 됩니다
$g4_path='./gnuboard4'; 이렇게 해주면 됩니다