그누는 최근게시물이 너무 어렵네요. 제발~~~ 정보
그누는 최근게시물이 너무 어렵네요. 제발~~~
본문
제로쓰다가 그누로 옮겼는데 최근게시물때문에 머리가 돌 지경임...
아마도 카운터나 설문 달때도 같을 것이라 생각됨..
제로보드에선 최상단에 절대경로만 뽑아 쓰면 최근게시물 다는 데 문제가 없는데
그누는 왜 이렇게 어려운지..
제 디렉토리는 대충 아래와 같습니다.
- www
-----board
-----temp
temp폴더의 new.php에 <?=latest("basic", "notice", 5, 50);?>라고 적었습니다.
물론 notice이라는 게시판을 만들었지요. 또 물론 에러 떴구요.
그래서 사람들이 가르켜주는데로 temp/new.php의 최상단에
<?
$g4_path = "../board";
include_once("$g4_path/common.php");
include_once("$g4_path/lib/latest.lib.php");
?>
라고 붙였습니다.
그런데 역시 에러 뜹니다.
Warning: main(../common.php): failed to open stream: No such file or directory in /home/hosting_users/microfiber/www/temp/new.php on line 3
Warning: main(): Failed opening '../common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/microfiber/www/temp/new.php on line 3
Warning: main(../lib/latest.lib.php): failed to open stream: No such file or directory in /home/hosting_users/microfiber/www/temp/new.php on line 4
Warning: main(): Failed opening '../lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/microfiber/www/temp/new.php on line 4
Fatal error: Call to undefined function: latest() in /home/hosting_users/microfiber/www/temp/new.php on line 16
뻔하죠.. common.php와 ilb.php 파일 없다는 뜻이죠... 경로 안 맞다는....
temp폴더에 new.php가 있다면 그누보드 폴더인 board폴더와의 상대경로는 ../board 맞는 거 아닌가요?
<?
$g4_path = "../board";
include_once("$g4_path/common.php");
include_once("$g4_path/lib/latest.lib.php");
?> 에서
include_once("$g4_path/lib/latest.lib.php");를 빼고 해봐도 마찬가지...
남들은 된다던데.. 도체 뭐가 문제???
경로를 어떻게 하면 좋을까요?
참고로 위 방법은 _common.php를 쓰지 않는 방법을 따라 한 것입니다.
제가 참고한 페이지 : http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=271&sca=&sfl=wr_subject%7C%7Cwr_content&stx=g4_path&sop=and
부탁드려요~~
아마도 카운터나 설문 달때도 같을 것이라 생각됨..
제로보드에선 최상단에 절대경로만 뽑아 쓰면 최근게시물 다는 데 문제가 없는데
그누는 왜 이렇게 어려운지..
제 디렉토리는 대충 아래와 같습니다.
- www
-----board
-----temp
temp폴더의 new.php에 <?=latest("basic", "notice", 5, 50);?>라고 적었습니다.
물론 notice이라는 게시판을 만들었지요. 또 물론 에러 떴구요.
그래서 사람들이 가르켜주는데로 temp/new.php의 최상단에
<?
$g4_path = "../board";
include_once("$g4_path/common.php");
include_once("$g4_path/lib/latest.lib.php");
?>
라고 붙였습니다.
그런데 역시 에러 뜹니다.
Warning: main(../common.php): failed to open stream: No such file or directory in /home/hosting_users/microfiber/www/temp/new.php on line 3
Warning: main(): Failed opening '../common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/microfiber/www/temp/new.php on line 3
Warning: main(../lib/latest.lib.php): failed to open stream: No such file or directory in /home/hosting_users/microfiber/www/temp/new.php on line 4
Warning: main(): Failed opening '../lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/microfiber/www/temp/new.php on line 4
Fatal error: Call to undefined function: latest() in /home/hosting_users/microfiber/www/temp/new.php on line 16
뻔하죠.. common.php와 ilb.php 파일 없다는 뜻이죠... 경로 안 맞다는....
temp폴더에 new.php가 있다면 그누보드 폴더인 board폴더와의 상대경로는 ../board 맞는 거 아닌가요?
<?
$g4_path = "../board";
include_once("$g4_path/common.php");
include_once("$g4_path/lib/latest.lib.php");
?> 에서
include_once("$g4_path/lib/latest.lib.php");를 빼고 해봐도 마찬가지...
남들은 된다던데.. 도체 뭐가 문제???
경로를 어떻게 하면 좋을까요?
참고로 위 방법은 _common.php를 쓰지 않는 방법을 따라 한 것입니다.
제가 참고한 페이지 : http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=271&sca=&sfl=wr_subject%7C%7Cwr_content&stx=g4_path&sop=and
부탁드려요~~
댓글 전체
> $g4_path = "../board";
> include_once("$g4_path/common.php");
위처럼 설정하셨다면 common.php를 찾는경로가 "../board/common.php" 가 되어야 할듯한데..
아래의 메세지는 왜 "../common.php"를 찾고있을까요 ?
> Warning: main(../common.php): failed to open stream: No such file or directory in /home/hosting_users/microfiber/www/temp/new.php on line 3
.
> include_once("$g4_path/common.php");
위처럼 설정하셨다면 common.php를 찾는경로가 "../board/common.php" 가 되어야 할듯한데..
아래의 메세지는 왜 "../common.php"를 찾고있을까요 ?
> Warning: main(../common.php): failed to open stream: No such file or directory in /home/hosting_users/microfiber/www/temp/new.php on line 3
.

지금 계속 해 보고 있는데, 환장하겠습니다.
저 말고도 저와 똑 같은 이유로 질문 하신 분들이 많더군요...
이거 아마 그누보드의 오류 아닐까요?
그누보드는 정말 불편하네요.. 꼭 _common.php로 common.php를 찾게 만든 이유가 뭔지 모르겠어요..
제로보드처럼 bbs란 폴더에 깔아도 쉽게 연결되야 하는데 그누는 따로 폴더를 만들어 깔면 이런 문제가...
이럴바에야 아예 그누보드를 루트디렉토리에 깔고 index파일을 수정하라고 하는 게 더 나을 거 같군요..
사람 돌아 버리겠음...
저 말고도 저와 똑 같은 이유로 질문 하신 분들이 많더군요...
이거 아마 그누보드의 오류 아닐까요?
그누보드는 정말 불편하네요.. 꼭 _common.php로 common.php를 찾게 만든 이유가 뭔지 모르겠어요..
제로보드처럼 bbs란 폴더에 깔아도 쉽게 연결되야 하는데 그누는 따로 폴더를 만들어 깔면 이런 문제가...
이럴바에야 아예 그누보드를 루트디렉토리에 깔고 index파일을 수정하라고 하는 게 더 나을 거 같군요..
사람 돌아 버리겠음...
확장성과 호환성을 고려할때 _common.php를 사용하시는것이 효율적입니다.
반드시 사용해야 하는것은 아니므로 _common.php가 불편하시면 common.php를 사용하시면 됩니다.
반드시 사용해야 하는것은 아니므로 _common.php가 불편하시면 common.php를 사용하시면 됩니다.
많은 분으로부터 좀더 빠른 검토를 원하신다면 작업중이신 URL을 알려주십시오
그러게 남들은 된다는데 왜 저는 아니되는 거나요오오오오...ㅠㅠ

그거 저두 안돼던데요..ㅡㅡ"
temp 디렉토리에 _common.php를 만들고 아래내용
======================
<?
$g4_path = "../gnuboard4";
include_once("$g4_path/common.php");
?>
=================
temp/new.php에
====================
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/head.php");
?>
~~~~~내용~~~
<?=latest("basic", "look", 5, 25);?>
<?
include_once("$g4[path]/_tail.php");
?>
===========================
처럼하면 됩디다......
단, _common.php을 편집하면서
<?
$g4_path = "../gnuboard4";
include_once("$g4_path/common.php");
?>
엔터
엔터
엔터
하며 공란을 만들었을 경우....에러뜹디다....
======================
<?
$g4_path = "../gnuboard4";
include_once("$g4_path/common.php");
?>
=================
temp/new.php에
====================
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/head.php");
?>
~~~~~내용~~~
<?=latest("basic", "look", 5, 25);?>
<?
include_once("$g4[path]/_tail.php");
?>
===========================
처럼하면 됩디다......
단, _common.php을 편집하면서
<?
$g4_path = "../gnuboard4";
include_once("$g4_path/common.php");
?>
엔터
엔터
엔터
하며 공란을 만들었을 경우....에러뜹디다....