외부 로그인 질문.... 정보
외부 로그인 질문....본문
index.htm 어느 테이블 부분에 외부로그인을 불러올려고 작업중인데 안됩니다..ㅠㅠ
일단 그누보드는 도메인/board폴더안에 집어넣었습니다.
outlogin위치는 /board/skin/outlogin이렇게 되겠죠???
그래서 그냥 인덱스 빈테이블에 연습할려고 이렇게 소스를 넣어봣습니다!
----------------------------------------------------------------------------------
<?
include_once("$g4_path/common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
?>
아웃로그인이 출력되어야 되는 부분에
<?=outlogin("basic");?>
----------------------------------------------------------------------------------
그런데 나온 결과물은
Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /www/ranger0401.godohosting.com/index.html on line 3
Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/ranger0401.godohosting.com/index.html on line 3
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/tmp:/www/default/hosting_db:/www/ranger0401.godohosting.com) in /www/ranger0401.godohosting.com/index.html on line 4
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /www/ranger0401.godohosting.com/index.html on line 4
Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/ranger0401.godohosting.com/index.html on line 4
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/outlogin.lib.php) is not within the allowed path(s): (/tmp:/www/default/hosting_db:/www/ranger0401.godohosting.com) in /www/ranger0401.godohosting.com/index.html on line 5
Warning: include_once(/lib/outlogin.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /www/ranger0401.godohosting.com/index.html on line 5
Warning: include_once() [function.include]: Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/ranger0401.godohosting.com/index.html on line 5
Warning: include_once(/head.sub.php) [function.include-once]: failed to open stream: No such file or directory in /www/ranger0401.godohosting.com/index.html on line 6
Warning: include_once() [function.include]: Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/ranger0401.godohosting.com/index.html on line 6
이렇게 나오네요..ㅠㅠㅠㅠ
제로보드하다가 그누보드로 넘어왔는데 자세한 설명좀 부탁드릴게요!
플리즈~~~
일단 그누보드는 도메인/board폴더안에 집어넣었습니다.
outlogin위치는 /board/skin/outlogin이렇게 되겠죠???
그래서 그냥 인덱스 빈테이블에 연습할려고 이렇게 소스를 넣어봣습니다!
----------------------------------------------------------------------------------
<?
include_once("$g4_path/common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
?>
아웃로그인이 출력되어야 되는 부분에
<?=outlogin("basic");?>
----------------------------------------------------------------------------------
그런데 나온 결과물은
Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /www/ranger0401.godohosting.com/index.html on line 3
Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/ranger0401.godohosting.com/index.html on line 3
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/tmp:/www/default/hosting_db:/www/ranger0401.godohosting.com) in /www/ranger0401.godohosting.com/index.html on line 4
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /www/ranger0401.godohosting.com/index.html on line 4
Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/ranger0401.godohosting.com/index.html on line 4
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/outlogin.lib.php) is not within the allowed path(s): (/tmp:/www/default/hosting_db:/www/ranger0401.godohosting.com) in /www/ranger0401.godohosting.com/index.html on line 5
Warning: include_once(/lib/outlogin.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /www/ranger0401.godohosting.com/index.html on line 5
Warning: include_once() [function.include]: Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/ranger0401.godohosting.com/index.html on line 5
Warning: include_once(/head.sub.php) [function.include-once]: failed to open stream: No such file or directory in /www/ranger0401.godohosting.com/index.html on line 6
Warning: include_once() [function.include]: Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/ranger0401.godohosting.com/index.html on line 6
이렇게 나오네요..ㅠㅠㅠㅠ
제로보드하다가 그누보드로 넘어왔는데 자세한 설명좀 부탁드릴게요!
플리즈~~~
댓글 전체
그누보드를 root 하위폴더를 만들어 설피하면 초보자는 경로 문제에 종종 부딪히게 됩니다
index.html을 board 폴더로 이동시키고 root의 index.html은 내용을 이렇게만 넣으세요
<?
header("Location: ./board/');
?>
그리고 common.php 인클루드는 아래와 같이 하세요
include_once("_common.php");
index.html을 board 폴더로 이동시키고 root의 index.html은 내용을 이렇게만 넣으세요
<?
header("Location: ./board/');
?>
그리고 common.php 인클루드는 아래와 같이 하세요
include_once("_common.php");
<?
// $g4_path = "."; 위치에 맞게 조정하시면 되실듯합니다.
$g4_path = ".";
include_once("$g4_path/common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
?>
아웃로그인이 출력되어야 되는 부분에
<?=outlogin("basic");?>
// $g4_path = "."; 위치에 맞게 조정하시면 되실듯합니다.
$g4_path = ".";
include_once("$g4_path/common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
?>
아웃로그인이 출력되어야 되는 부분에
<?=outlogin("basic");?>
<?
// $g4_path = "."; 위치에 맞게 조정하시면 되실듯합니다.
$g4_path = ".";
include_once("$g4_path/common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
?>
아웃로그인이 출력되어야 되는 부분에
<?=outlogin("basic");?>
-------------------------------
여기에서
// $g4_path = "."; 위치에 맞게 조정하시면 되실듯합니다.
$g4_path = ".";
이부분이 이해 안가네요??다시죰요..ㅠㅠㅠ
// $g4_path = "."; 위치에 맞게 조정하시면 되실듯합니다.
$g4_path = ".";
include_once("$g4_path/common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
?>
아웃로그인이 출력되어야 되는 부분에
<?=outlogin("basic");?>
-------------------------------
여기에서
// $g4_path = "."; 위치에 맞게 조정하시면 되실듯합니다.
$g4_path = ".";
이부분이 이해 안가네요??다시죰요..ㅠㅠㅠ
$g4_path = "./board"; // 그누가 설치된 경로를 지정해야 하니까 이게 맞습니다만
다른 부분에서 에러 나는 곳은 없을지 모르겠군요
다른 부분에서 에러 나는 곳은 없을지 모르겠군요