안녕하세요.
로그인페이지를 힘들게 만들고 있습니다....질답 게시판과 활용팁 게시판을 뒤져보면서 말이죠.
기존 나야보드 사용하다가 언인스톨 시키고 그누보드 인스톨해서 사용할려고 하는데 여간 힘드는게 아니네요..
우여곡절끝에 로그인은 성공을 했는것 같은데, 로그아웃을 하고나면
Warning: include_once(./gnuboard4/common.php) [function.include-once]: failed to open stream: No such file or directory in /free/home/kbipca/html/gnuboard4/_common.php on line 3
Warning: include_once() [function.include]: Failed opening './gnuboard4/common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /free/home/kbipca/html/gnuboard4/_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 /free/home/kbipca/html/gnuboard4/index.php on line 3
Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /free/home/kbipca/html/gnuboard4/index.php on line 3
이런 경고가 뜹니다.
디렉토리 구조는 
이렇구요, html폴더에 htm파일들이 있는데 파일 모두 위 경고가 뜹니다.
아무리 해봐도 몰라서 질문을 드립니다.
_common.php파일내용은
<?
$g4_path = "./gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
이구요, index.php파일은
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
이렇게 시작을 하네요.
로그아웃을 하면 원래파일로 남는게 기본적으로 되어있는게 아닌가요?
자세한 답변 부탁드립니다^^
댓글 4개
<?
$g4_path = "./gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
여기서
include_once("$g4_path/_common.php");
으로 잘못 썼는지 확인해 보세요.
참, 저 경고는 index.php 파일에서도 나지만 html 폴더에 있는 index.htm파일에서 납니다.
<?
$g4_path = "./gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
는 아니겠죠?
아! 이제 알겠네요...^^
고맙습니다~