외부로그인을 원하는 곳에 넣고 싶은데요

· 2013-01-17 (목) 15:37:37 · 863 · 4
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :




<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php"); // outlogin() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.

echo outlogin("sds"); // sds 스킨으로 아웃로그인을 출력합니다.
?>

현재 이 경로로 성공했거든요?
그런데 저 echo 부분을 지우고 <?=outlogin("sds");?> 를 원하는 부분에 쓰면 출력이 안되고,
저 echo 부분을 쓰면 인터넷 가장 상단 부분 왼쪽 제일 윗부분에 나와요.
index1.php에서 불러오고 싶은데 어떻게 해야하나요?

<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php"); // outlogin() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.

echo outlogin("sds"); // sds 스킨으로 아웃로그인을 출력합니다.
?>




head1.php

<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>

<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" bgcolor="#A24141">
<div align="left">
<table cellpadding="0" cellspacing="0" width="1200">
<tr>
<td width="342" rowspan="5" valign="bottom" height="1007" background="http://cfile233.uf.daum.net/original/-"><img src="http://cfile230.uf.daum.net/original/-" border="0"></td>
<td width="858" valign="top" height="485" background="http://cfile233.uf.daum.net/original/-" colspan="3"><img src="http://cfile229.uf.daum.net/original/-" border="0">


-------------------------------------------------


index1.php


</td>
</tr>
<tr>
<td width="858" height="20" background="http://cfile233.uf.daum.net/original/-" colspan="3">
<p><?=outlogin("sds");?>

</p>
</td>
</tr>
<tr>
<td width="858" height="217" background="http://cfile233.uf.daum.net/original/-" colspan="3">

<p> </p>
<p> </p>
<p> </p>
<p> </p>
</td>






현재 index.html은 public_html 폴더에, head1.php tail1.php index1.php _common.php head.sub.php는 public_html 폴더 안에 있는 gunboard4 폴더 안에 있어요!


경로가 잘못된 건 아닌 거 같은데 어떻게 해야하나요??
|

댓글 4개

head1.php 파일에서
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
?>
이 부분이 있어야 하지 않나요?
엇 잘못 올렸네요ㅠㅠ 상단에
<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php"); // outlogin() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.

echo outlogin("sds"); // sds 스킨으로 아웃로그인을 출력합니다.
?>

이렇게 있어요!
그렇다면 index1.php에서 head1.php를 인클루드 하는 부분은 넣으셨는지 확인해 보세요.
아니요... 그러면 index1.php 가장 상단에
<?
include_once("$g4[path]/head1.php");
?>
을 넣으면 되는건가요?ㅠㅠ
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
13-01-17 조회 864
13-01-17 조회 1,079
13-01-17 조회 847
13-01-17 조회 1,073
13-01-17 조회 1,612
13-01-17 조회 1,098
13-01-17 조회 1,553
13-01-17 조회 928
13-01-17 조회 635
13-01-17 조회 1,780
13-01-17 조회 1,174
13-01-17 조회 795
13-01-17 조회 1,629
13-01-17 조회 652
13-01-17 조회 1,659
13-01-17 조회 627
13-01-17 조회 1,303
13-01-17 조회 1,582
13-01-17 조회 737
13-01-17 조회 1,613