외부로그인이 잘 안 됩니다.
본문
<?phpinclude_once(G5_LIB_PATH."/outlogin.lib.php");
echo outlogin("hp5_dropdown"); // 외부 로그인
?>
<html>
<head>
<title>연습</title>
<meta name="generator" content="Namo WebEditor(Trial)">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" topmargin="0" marginheight="0">
<table width="800" height="582" align="center" cellpadding="0" cellspacing="0" style="border-style:none;">
<tr>
<td colspan="2" height="80" width="800" style="border-style:none;" valign="bottom">
<?php echo outlogin('hp5_dropdown'); // 외부 로그인 ?> </td>
</tr>
<tr>
<td width="334" height="400" bgcolor="#38378D" align="right" valign="top">
<p><img src="bilder/parole.jpg" width="234" height="101" border="0"></p>
</td>
<td width="466" height="400" align="center" valign="bottom">
<div id="gr" style="width:241px; height:276px; position:absolute; left:692px; top:180px; z-index:1;">
<table border="0" width="241" height="278">
<tr>
<td width="235" height="274"><img src="bilder/gr.gif" width="241" height="276" border="0"></td>
</tr>
</table>
</div>
<p> </p>
<div id="gor" style="width:241px; height:158px; position:absolute; left:1079px; top:70px; z-index:1;">
<p><img src="bilder/gor.gif" width="241" height="158" border="0"></p>
</div>
<p> <img src="bilder/vino.jpg" width="215" height="321" border="0"></p>
</td>
</tr>
<tr>
<td width="800" colspan="2" height="106"><?include "boden.htm"?></td>
</tr>
</table>
</body>
</html>
위와 같이 했는데 서버에 올리고 띄우면 다음과 같은 내용이 뜹니다.
Warning: include_once(G5_LIB_PATH/outlogin.lib.php) [function.include-once]: failed to open stream: No such file or directory in /www/zelkova.me/public_html/index.htm on line 2
Warning: include_once() [function.include]: Failed opening
'G5_LIB_PATH/outlogin.lib.php' for inclusion
(include_path='.:/usr/local/php/lib/php') in
/www/zelkova.me/public_html/index.htm on line 2
Fatal
error: Call to undefined function outlogin() in
/www/zelkova.me/public_html/index.htm on line 3
그런데 게시판에 적용하면 제대로 동작합니다.
웹페이지에 할 때만 위와 같은 경고가 뜹니다.
/www/zelkova.me/public_html/index.htm
에서 /www/zelkova.me/..
www 다음에 / 가 오는 것도 이상합니다.
어느 부분이 잘못된 걸까요?
!-->
답변 2
위에 부분을 이렇게 하세요.
<?php
include_once('./_common.php');
include_once(G5_LIB_PATH.'/outlogin.lib.php');
?>
게시판쪽은 별도로 _common.php 파일이 설정되어 있기 때문에 나오는겁니다.
1. 일단 나모를 버리시고 일단 텍스트 에디터를 사용하세요.
2. 설치버전이 그누4인가요? 5인가요?
테이블 레이아웃을 잡았는데 테이블을 걷어내고 div를 사용하세요.
3. 외부로그인이 지금 상단에도 삽입되었고 body태그 안에도 삽입되었네요.
4. 그누보드는 아웃로그인만 인클루드한다고 작동하진 않죠. 해드부분이 하나도 안보이는군요.
.....