최근게시물 출력이 안됩니다. 도와주세요.
이 곳 아무리 뒤져서 해봐도 계속 에러가 나네요
뭐가 잘못 된건가요..
출력파일: index2.htm
그누보드 : /www/gnuboard4
게시판 스킨 : 기본(basic)
게시판 타이틀 : memo
소스
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
<!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=euc-kr" />
<title>TYPE-LIBRARY</title>
<style type="text/css">
<!--
body {
margin-left: 20px;
margin-top: 83px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
<!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=euc-kr" />
<title>TYPE-LIBRARY</title>
<style type="text/css">
<!--
body {
margin-left: 20px;
margin-top: 83px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<table width="784" height="0" border="0" cellpadding="0" cellspacing="0">
</table>
<table width="900" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<? echo latest("basic", "memo", 5, 70); ?>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
<table width="784" height="0" border="0" cellpadding="0" cellspacing="0">
</table>
<table width="900" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<? echo latest("basic", "memo", 5, 70); ?>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 12개
경로가 정확한지 확인해 봐야 할 것 같네요.
index2.htm 의 경로를 확인해 보세요.
그리고 정상적으로 그누보드가 설치 되었는지요?
이렇게 해보세요..^^
Parse error: parse error, unexpected '=' in /home/hosting_users/sepets/www/index2.htm on line 31
------------
http://sepets.cafe24.com/index2.htm
여기가 주소입니다.ㅠㅠ
index가 있는 곳에..
_common.php 파일을 만드셔서...
<?
$g4_path = "gnuboard4";
include_once("$g4_path/common.php");
?>
로 저장하시고.. 위 님께서 작성하신 인덱스로 불러오시던지..
또는..
include_once("./gnuboard4/_common.php");
로 바꿔보세요..
2가지중 1가지 방법만 하셔야합니다.
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>TYPE-LIBRARY</title>
<style type="text/css">
<!--
body {
margin-left: 20px;
margin-top: 83px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<table width="784" height="0" border="0" cellpadding="0" cellspacing="0">
</table>
<table width="900" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<? = latest("basic", "memo", 5, 70); ?></td>
</tr>
</table>
</body>
</html>
이렇게 했는데...
Parse error: parse error, unexpected '=' in /home/hosting_users/sepets/www/index2.htm on line 23
이런 에러가 나네요
파일이 올려져 있는 주소는 http://sepets.cafe24.com/index2.htm 입니다
include_once("$g4[path]/lib/latest.lib.php"); 추가해 보세요.
맨위에는 있었는데 바로 위 소스에서는 빠져 있네요.
위 내용 모두 처리 된 상태라면
<?= latest
물음표와 = 사이의 공백을 없애 주세요.
참 가슴이 답답하네요..
http://sepets.cafe24.com/index2.htm 입니다
----
include_once("./gnuboard4/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>TYPE-LIBRARY</title>
<style type="text/css">
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<?= latest("basic", "memo", 5, 70); ?></td>
</tr>
</table>
</body>
</html>
include_once("./gnuboard4/_common.php");
include_once("./gnuboard4/lib/latest.lib.php"); 이와 같이 우선 해 보신 후
php 파일 위치를 잘 확인하셔서 경로를 정확히 설정해 보세요.
설정이 다를 수 있으니 아래 팁을 참고 해 보시기 바랍니다.
http://sir.co.kr/bbs/tb.php/g4_tiptech/271
<? ?> 안하셨네여?
<?
include_once("./gnuboard4/_common.php");
include_once("./gnuboard4/lib/latest.lib.php");
?>
입니다.
php 소스는 반드시 <? 와 ?> 사이에 있어야합니다.