다른 경로 디렉토리에서 아웃로그인은 어떻게 정보
다른 경로 디렉토리에서 아웃로그인은 어떻게본문
아래와 같이 계정내에 그누보드 디렉토리가 있는데
다른 디렉토리의 html 화일에 아웃로그인을 달려면 어떻게 해야 하는지요.
디렉토리 구조
public_html -|- gnuboard4
|- htm
sample.html
htm 디렉토리의 sample.html 화일에 아웃로그인을 달아야 합니다.
그누보드 설치 디렉토리가 아예 다르다 보니
단순히 <?=outlogin("스킨디렉토리")?> 만 가지고는 아웃로그인창이
나타나지 않습니다.
그래서 아래와 같이 sample.html 화일 상단에
<?
include_once("/절대경로/gnuboard4/_common.php");
include_once("/절대경로/gnuboard4/lib/outlogin.lib.php");
?>
위와 같이 넣어 보아도 아래와 같은 경고 메세지만 뜹니다.
Warning: main(./common.php) [function.main]: failed to open stream: No such file or directory in /절대경로/gnuboard4/_common.php on line 3
Warning: main() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /절대경로/gnuboard4/_common.php on line 3
같은 계정내의 그누보드가 설치된 디렉토리와는 다른 디렉토리의 html 화일에
아웃로그인 창을 달려면 어떻게 해야 할까요...
다른 디렉토리의 html 화일에 아웃로그인을 달려면 어떻게 해야 하는지요.
디렉토리 구조
public_html -|- gnuboard4
|- htm
sample.html
htm 디렉토리의 sample.html 화일에 아웃로그인을 달아야 합니다.
그누보드 설치 디렉토리가 아예 다르다 보니
단순히 <?=outlogin("스킨디렉토리")?> 만 가지고는 아웃로그인창이
나타나지 않습니다.
그래서 아래와 같이 sample.html 화일 상단에
<?
include_once("/절대경로/gnuboard4/_common.php");
include_once("/절대경로/gnuboard4/lib/outlogin.lib.php");
?>
위와 같이 넣어 보아도 아래와 같은 경고 메세지만 뜹니다.
Warning: main(./common.php) [function.main]: failed to open stream: No such file or directory in /절대경로/gnuboard4/_common.php on line 3
Warning: main() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /절대경로/gnuboard4/_common.php on line 3
같은 계정내의 그누보드가 설치된 디렉토리와는 다른 디렉토리의 html 화일에
아웃로그인 창을 달려면 어떻게 해야 할까요...
댓글 전체
탈 디렉토리라고 팁게시판을 참조하셔도 좋을 듯합니다.