최근 게시물 관련 질문입니다.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("basic", "free", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
이렇게 나와있더라구요
그래서 적용을 하면 오류가 뜹니다.
뭔가 디렉토리 경로가 틀려서 그런거 같은데 어떻게 잡아야 할까요?
index.php 는 루트에 있고
그누보드는 루트에 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
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("basic", "free", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
이렇게 나와있더라구요
그래서 적용을 하면 오류가 뜹니다.
뭔가 디렉토리 경로가 틀려서 그런거 같은데 어떻게 잡아야 할까요?
index.php 는 루트에 있고
그누보드는 루트에 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
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 3개
답변을 다시는 분들이 신이 아니거든요....
질문의 질이 답변의 질을 결정합니다.
http://홈피주소/gnuboard4/ 로 하시면 됩니다.
그냥 현재의 방법으로 사용하시려면 리플래쉬 페이지를 만들어 사용하시거나
index.php 파일의 인클루드된 파일들의 경로를 환경에 맞게 수정해 주셔야 합니다.