site.html에서 외부로그인을 다는 방법 정보
site.html에서 외부로그인을 다는 방법본문
첫 화면이 아닌 xxx.html화면에서 외부로그인을 다는 방법이 무엇입니까?
<?
$g4_path=".";
include_once("./common.php");
include_once("./head.sub.php");
include_once("./lib/outlogin.lib.php"); echo outlogin("basic");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
로그인이 들어갈 부분에 <?=outlogin("basic");?>을 삽입했는데도 에러가 나오는군요!
Root directory
html(최상위)/
head.php
head.sub.php
index.php
htmls/site.html
이렇게 구성되어 있습니다. 즉 상위에 바로 그누보드를 설치하고 그곳에 htmls폴더, 그리고 그 안에 외부로그인을 삽입하려는 site.html페이지가 있습니다.
뭔가 구문이 틀린 것 같은데 뭐가 틀렸는지, 경로가 잘못되었는지 알길이 없네요. 에러 구문은 다음과 같이 뜹니다.
Warning: include_once(./common.php) [function.include-once]: failed to open stream: No such file or directory in /home2/kccv/html/htmls/site.html on line 3
일반적인 html페이지에 외부로그임을 불러오는 방법이 무엇인지 가르쳐주시면 고맙겠습니다. 설명한 부분들을 찾아서 해보았는데 안 되더군요.
<?
$g4_path=".";
include_once("./common.php");
include_once("./head.sub.php");
include_once("./lib/outlogin.lib.php"); echo outlogin("basic");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
로그인이 들어갈 부분에 <?=outlogin("basic");?>을 삽입했는데도 에러가 나오는군요!
Root directory
html(최상위)/
head.php
head.sub.php
index.php
htmls/site.html
이렇게 구성되어 있습니다. 즉 상위에 바로 그누보드를 설치하고 그곳에 htmls폴더, 그리고 그 안에 외부로그인을 삽입하려는 site.html페이지가 있습니다.
뭔가 구문이 틀린 것 같은데 뭐가 틀렸는지, 경로가 잘못되었는지 알길이 없네요. 에러 구문은 다음과 같이 뜹니다.
Warning: include_once(./common.php) [function.include-once]: failed to open stream: No such file or directory in /home2/kccv/html/htmls/site.html on line 3
일반적인 html페이지에 외부로그임을 불러오는 방법이 무엇인지 가르쳐주시면 고맙겠습니다. 설명한 부분들을 찾아서 해보았는데 안 되더군요.
댓글 전체
site.html 에서 $g4_path 는 .. 가 되겠죠.