외부로그인 질문드립니다. 정보
외부로그인 질문드립니다.본문
현재 홈페이지 루트에 index.html 말고 루트밑에 center라는 폴더에 index.html을 만들었습니다.
그러니까 전혀 다른 페이지지요. 여기에서 외부로그인을 달려면 어떻게 해야하나요?
아래처럼 하면 에러가 나더군요. ./common.php를 center폴더에 복사해놓고도 해봤는데 안되고요.
그리고 루트에는 배추빌더가 설치되어 있고 center에는 또 다른 홈피를 만들어 로그인을 하려는데 물론 동일db에요. 가능하겠지요?
<?
include_once("../_common.php"); <== 요기
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
?>
<?=outlogin("outlogin")?>
Warning: include_once(./common.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/homeschool/html/_common.php on line 3
Warning: include_once() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /web/home/homeschool/html/_common.php on line 3
Warning: include_once(/head.sub.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/homeschool/html/center/index.html on line 3
Warning: include_once() [function.include]: Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /web/home/homeschool/html/center/index.html on line 3
Warning: include_once(/lib/outlogin.lib.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/homeschool/html/center/index.html on line 4
Warning: include_once() [function.include]: Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /web/home/homeschool/html/center/index.html on line 4
그러니까 전혀 다른 페이지지요. 여기에서 외부로그인을 달려면 어떻게 해야하나요?
아래처럼 하면 에러가 나더군요. ./common.php를 center폴더에 복사해놓고도 해봤는데 안되고요.
그리고 루트에는 배추빌더가 설치되어 있고 center에는 또 다른 홈피를 만들어 로그인을 하려는데 물론 동일db에요. 가능하겠지요?
<?
include_once("../_common.php"); <== 요기
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
?>
<?=outlogin("outlogin")?>
Warning: include_once(./common.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/homeschool/html/_common.php on line 3
Warning: include_once() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /web/home/homeschool/html/_common.php on line 3
Warning: include_once(/head.sub.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/homeschool/html/center/index.html on line 3
Warning: include_once() [function.include]: Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /web/home/homeschool/html/center/index.html on line 3
Warning: include_once(/lib/outlogin.lib.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/homeschool/html/center/index.html on line 4
Warning: include_once() [function.include]: Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /web/home/homeschool/html/center/index.html on line 4
댓글 전체
include_once("../../_common.php"); <== 요기
이렇게 되야지 맞을듯 한데요 ^^
이렇게 되야지 맞을듯 한데요 ^^
그렇게 하니 아래처럼 에러가 나네요. 참고로 _common.php는 루트에 있습니다. 그러니../_common.php가 맞긴 한데 에러가 나네요.
Warning: include_once(../../_common.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/homeschool/html/center/index.html on line 2
Warning: include_once() [function.include]: Failed opening '../../_common.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /web/home/homeschool/html/center/index.html on line 2
Warning: include_once(/head.sub.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/homeschool/html/center/index.html on line 3
Warning: include_once() [function.include]: Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /web/home/homeschool/html/center/index.html on line 3
Warning: include_once(/lib/outlogin.lib.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/homeschool/html/center/index.html on line 4
Warning: include_once() [function.include]: Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /web/home/homeschool/html/center/index.html on line 4
Warning: include_once(../../_common.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/homeschool/html/center/index.html on line 2
Warning: include_once() [function.include]: Failed opening '../../_common.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /web/home/homeschool/html/center/index.html on line 2
Warning: include_once(/head.sub.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/homeschool/html/center/index.html on line 3
Warning: include_once() [function.include]: Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /web/home/homeschool/html/center/index.html on line 3
Warning: include_once(/lib/outlogin.lib.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/homeschool/html/center/index.html on line 4
Warning: include_once() [function.include]: Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /web/home/homeschool/html/center/index.html on line 4