최근 게시물 출력 문제에 대해서... 정보
최근 게시물 출력 문제에 대해서...관련링크
본문
증상인 즉슨, 현재 홈페이지에 그누보드가 상위 디렉토리에 설치 되어 있습니다.
문제는 www에 있는 index에선 최근 게시물 출력이 안 된다는 점입니다.
g패스에 ../를 붙여봐도 안 되는 걸 그누보드 안에 집어넣으면 당연히 문제 없이 다이렉트로 불러오구요.. 물론 _common도 상위 디렉토리로 경로 설정을 해줘봤습니다.
이런 증상은 처음이라 도저히 갈피를 못 잡고 있습니다.
홈페이지를 아직 만드는 중이라 테스트 용으로 그누보드 폴더 안에 index2.php 파일을 넣어놓고 작업 중이라 경로를 그냥 기본으로 해뒀습니다.
제로보드 xe에서 주는 것만 받아 쓰려다 그누보드 직접 만들어 보려 하니 뭐가 뭔지 영 모르겠습니다.
index2.php 소스입니다. 소스의 차이 없이 g패스와 _common만 수정했던 거라 차이가 없어요...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>첨단은 자연에서부터, 창의과학관</title>
<link rel="stylesheet" type="text/css" href="main.css" />
<style type="text/css">
<!--
body {
background-color: #bcbc1d;
}
-->
</style></head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="00">
<tr>
<td height="15" align="right" valign="center" background="images/sitebar.gif"><table width="920" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="200" border="0" align="right" cellpadding="00" cellspacing="0">
<tr>
<td width="54"><h1><a href="login.php"><span style="font-size:8pt;"><font color="#E5E5E5">로그인</a></h1></td>
<td width="64"><h1><a href="register.php"><span style="font-size:8pt;"><font color="#E5E5E5">회원가입</a></h1></td>
<td width="64"><h1><a href="sitemap.php"><span style="font-size:8pt;"><font color="#E5E5E5">사이트맵</a></h1></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td width="1280" height="48" align="center" valign="middle" background="images/index22_03.png"><table width="715" border="0" cellspacing="0" cellpadding="00">
<tr>
<td width="136" height="48" background="images/logo.png" style=cursor:hand; onclick=location.href="index.php"></td>
<td width="107" height="48" background="images/menu/introduce.png" style=cursor:hand; onclick=location.href="introduce.php"></td>
<td width="91" height="48" background="images/menu/exhibition.png" style=cursor:hand; onclick=location.href="exhibition.php"></td>
<td width="54" height="48" background="images/menu/newest.png" style=cursor:hand; onclick=location.href="newest.php"></td>
<td width="99" height="48" background="images/menu/cyer.png" style=cursor:hand; onclick=location.href="cyber.php"></td>
<td width="97" height="48" background="images/menu/experience.png" style=cursor:hand; onclick=location.href="experience.php"></td>
<td width="131" height="48" background="images/menu/reservation.png" style=cursor:hand; onclick=location.href="reservation.php"></td>
</tr>
</table></td>
</tr>
</table>
<table width="920" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td height="8"></td>
</tr>
</table>
<table width="920" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td width="720" height="423" bgcolor="#FFFFFF"><table width="720" height="8" border="0" cellspacing="0" cellpadding="00">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
</table>
<table width="704" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td width="704" height="186" background="images/cs.png" style=cursor:hand; onclick=location.href="experience.php"></td>
</tr>
</table>
<table width="720" height="8" border="0" cellspacing="0" cellpadding="00">
<tr>
<td></td>
</tr>
</table>
<table width="720" border="0" cellspacing="0" cellpadding="00">
<tr>
<td height="137" bgcolor="#FFFFFF"><table width="704" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td width="352"><?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("notice", "notice", 6, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?></td>
<td height="156"><?
include_once("../_common.php");
include_once("gnuboard/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("news", "news", 6, 50); // basic 스킨으로 free 라는 게시판을 출력합니다.
?></td>
</tr>
</table>
<table width="704" height="2" border="0" align="center" cellpadding="00" cellspacing="0" bgcolor="#628e0c" alighn="center">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr></tr>
</table>
<table width="216" height="8" border="0" cellspacing="0" cellpadding="00">
<tr>
<td></td>
</tr>
</table></td>
</tr>
<tr>
<td height="34" bgcolor="#FFFFFF"><table width="704" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td width="174" height="49" background="images/fast/cs_lab.jpg" style=cursor:hand; onclick=window.open('http://cs365.kr')></td>
<td width="174" height="49" background="images/fast/online_appointment.jpg" style=cursor:hand; onclick=location.href="appointment.php"></td>
<td width="174" height="49" background="images/fast/compass.jpg" style=cursor:hand; onclick=location.href="appointment.php"></td>
<td width="174" height="49" background="images/fast/sitemap.jpg" style=cursor:hand; onclick=location.href="sitemap.php"></td>
</tr>
</table></td>
</tr>
</table>
<table width="720" height="8" border="0" cellspacing="0" cellpadding="00">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
</table></td>
<td width="200" bgcolor="#ffffff"><table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="192" height="200" valign="bottom" background="images/banner1.png" style=cursor:hand; onclick=location.href="http://ckdrhd6225.cafe24.com/newest.php"></td>
</tr>
<tr>
<td height="8"></td>
</tr>
<tr>
<td height="203" valign="bottom" background="images/banner1.png" style="cursor:hand;" onclick="location.href="http://ckdrhd6225.cafe24.com/newest.php""></td>
</tr>
</table></td>
</tr>
</table>
<table width="920" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td height="14" background="images/foot1.png"> </td>
</tr>
</table>
<table width="920" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td height="29" bgcolor="#FFFFFF"><table width="857" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td width="212" align="center"><p><img src="images/tail_logo_02.png" width="102" height="39" align="middle" /></p></td>
<td width="645" height="39"><table width="644" border="0" cellspacing="0" cellpadding="00">
<tr>
<td width="644" height="19"><span style="font-size:8pt;"><font color="#666"><a href="guide/crop/index.php" target="_blank">회사소개</a> | <a href="guide/pravacy/index.html" target="_blank">개인정보취급방침</a> | <a href="guide/proposal/index.html" target="_blank">제휴제안</a> | <a href="guide/service/index.html" target="_blank">이용약관</a> | <a href="guide/help/index.php" target="_blank">고객센터</a></td>
</tr>
<tr>
<td width="644" height="49"><img src="images/copy_05.png" width="645" height="33" /></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="920" height="2" border="0" align="center" cellpadding="00" cellspacing="0" bgcolor="#628e0c" alighn="center">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
</tr>
</table>
</body>
</html>
http://ckdrhd6225.cafe24.com/
http://ckdrhd6225.cafe24.com/gnuboard/index2.php
들어가 보시면 바로 확인하실 수 있을 거예요
문제는 www에 있는 index에선 최근 게시물 출력이 안 된다는 점입니다.
g패스에 ../를 붙여봐도 안 되는 걸 그누보드 안에 집어넣으면 당연히 문제 없이 다이렉트로 불러오구요.. 물론 _common도 상위 디렉토리로 경로 설정을 해줘봤습니다.
이런 증상은 처음이라 도저히 갈피를 못 잡고 있습니다.
홈페이지를 아직 만드는 중이라 테스트 용으로 그누보드 폴더 안에 index2.php 파일을 넣어놓고 작업 중이라 경로를 그냥 기본으로 해뒀습니다.
제로보드 xe에서 주는 것만 받아 쓰려다 그누보드 직접 만들어 보려 하니 뭐가 뭔지 영 모르겠습니다.
index2.php 소스입니다. 소스의 차이 없이 g패스와 _common만 수정했던 거라 차이가 없어요...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>첨단은 자연에서부터, 창의과학관</title>
<link rel="stylesheet" type="text/css" href="main.css" />
<style type="text/css">
<!--
body {
background-color: #bcbc1d;
}
-->
</style></head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="00">
<tr>
<td height="15" align="right" valign="center" background="images/sitebar.gif"><table width="920" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="200" border="0" align="right" cellpadding="00" cellspacing="0">
<tr>
<td width="54"><h1><a href="login.php"><span style="font-size:8pt;"><font color="#E5E5E5">로그인</a></h1></td>
<td width="64"><h1><a href="register.php"><span style="font-size:8pt;"><font color="#E5E5E5">회원가입</a></h1></td>
<td width="64"><h1><a href="sitemap.php"><span style="font-size:8pt;"><font color="#E5E5E5">사이트맵</a></h1></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td width="1280" height="48" align="center" valign="middle" background="images/index22_03.png"><table width="715" border="0" cellspacing="0" cellpadding="00">
<tr>
<td width="136" height="48" background="images/logo.png" style=cursor:hand; onclick=location.href="index.php"></td>
<td width="107" height="48" background="images/menu/introduce.png" style=cursor:hand; onclick=location.href="introduce.php"></td>
<td width="91" height="48" background="images/menu/exhibition.png" style=cursor:hand; onclick=location.href="exhibition.php"></td>
<td width="54" height="48" background="images/menu/newest.png" style=cursor:hand; onclick=location.href="newest.php"></td>
<td width="99" height="48" background="images/menu/cyer.png" style=cursor:hand; onclick=location.href="cyber.php"></td>
<td width="97" height="48" background="images/menu/experience.png" style=cursor:hand; onclick=location.href="experience.php"></td>
<td width="131" height="48" background="images/menu/reservation.png" style=cursor:hand; onclick=location.href="reservation.php"></td>
</tr>
</table></td>
</tr>
</table>
<table width="920" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td height="8"></td>
</tr>
</table>
<table width="920" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td width="720" height="423" bgcolor="#FFFFFF"><table width="720" height="8" border="0" cellspacing="0" cellpadding="00">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
</table>
<table width="704" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td width="704" height="186" background="images/cs.png" style=cursor:hand; onclick=location.href="experience.php"></td>
</tr>
</table>
<table width="720" height="8" border="0" cellspacing="0" cellpadding="00">
<tr>
<td></td>
</tr>
</table>
<table width="720" border="0" cellspacing="0" cellpadding="00">
<tr>
<td height="137" bgcolor="#FFFFFF"><table width="704" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td width="352"><?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("notice", "notice", 6, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?></td>
<td height="156"><?
include_once("../_common.php");
include_once("gnuboard/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("news", "news", 6, 50); // basic 스킨으로 free 라는 게시판을 출력합니다.
?></td>
</tr>
</table>
<table width="704" height="2" border="0" align="center" cellpadding="00" cellspacing="0" bgcolor="#628e0c" alighn="center">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr></tr>
</table>
<table width="216" height="8" border="0" cellspacing="0" cellpadding="00">
<tr>
<td></td>
</tr>
</table></td>
</tr>
<tr>
<td height="34" bgcolor="#FFFFFF"><table width="704" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td width="174" height="49" background="images/fast/cs_lab.jpg" style=cursor:hand; onclick=window.open('http://cs365.kr')></td>
<td width="174" height="49" background="images/fast/online_appointment.jpg" style=cursor:hand; onclick=location.href="appointment.php"></td>
<td width="174" height="49" background="images/fast/compass.jpg" style=cursor:hand; onclick=location.href="appointment.php"></td>
<td width="174" height="49" background="images/fast/sitemap.jpg" style=cursor:hand; onclick=location.href="sitemap.php"></td>
</tr>
</table></td>
</tr>
</table>
<table width="720" height="8" border="0" cellspacing="0" cellpadding="00">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
</table></td>
<td width="200" bgcolor="#ffffff"><table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="192" height="200" valign="bottom" background="images/banner1.png" style=cursor:hand; onclick=location.href="http://ckdrhd6225.cafe24.com/newest.php"></td>
</tr>
<tr>
<td height="8"></td>
</tr>
<tr>
<td height="203" valign="bottom" background="images/banner1.png" style="cursor:hand;" onclick="location.href="http://ckdrhd6225.cafe24.com/newest.php""></td>
</tr>
</table></td>
</tr>
</table>
<table width="920" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td height="14" background="images/foot1.png"> </td>
</tr>
</table>
<table width="920" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td height="29" bgcolor="#FFFFFF"><table width="857" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td width="212" align="center"><p><img src="images/tail_logo_02.png" width="102" height="39" align="middle" /></p></td>
<td width="645" height="39"><table width="644" border="0" cellspacing="0" cellpadding="00">
<tr>
<td width="644" height="19"><span style="font-size:8pt;"><font color="#666"><a href="guide/crop/index.php" target="_blank">회사소개</a> | <a href="guide/pravacy/index.html" target="_blank">개인정보취급방침</a> | <a href="guide/proposal/index.html" target="_blank">제휴제안</a> | <a href="guide/service/index.html" target="_blank">이용약관</a> | <a href="guide/help/index.php" target="_blank">고객센터</a></td>
</tr>
<tr>
<td width="644" height="49"><img src="images/copy_05.png" width="645" height="33" /></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="920" height="2" border="0" align="center" cellpadding="00" cellspacing="0" bgcolor="#628e0c" alighn="center">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
</tr>
</table>
</body>
</html>
http://ckdrhd6225.cafe24.com/
http://ckdrhd6225.cafe24.com/gnuboard/index2.php
들어가 보시면 바로 확인하실 수 있을 거예요
댓글 전체