최신글 오류~ 큰일났어요... 정보
그누보드 최신글 오류~ 큰일났어요...본문
제가 최신글 관련 해서 오류가 났어요...
우선은 cont.html 파일의 소스를 보여드릴께요... (최신글 불러오는 곳이랍니다.)
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "STYLE");
$html_title = "2bit > main 페이지";
?>
<br><br>
<table width=750 cellpadding=0 cellspacing=0> <colgroup width=''> <colgroup width=5> <colgroup width=170>
<tr><td width=10 height="30">
<td width=740 valign=top>
<table width=730 align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="360" rowspan="2" valign="top" align=center><? latest('basic',test1, 5, 20); ?></td>
<td width="20" rowspan="2" align="center"></td>
<td width="360" align="center" valign="top"><? latest('basic', test2, 5, 20); ?></td> </tr>
</table></td>
</tr></table>
이렇게 소스를 짰는뒤... 불러오니까 밑의 오류가 나는거에요... 으흑흑....
Fatal error: Cannot redeclare latest() (previously declared in /home/도메인/public_html/board/lib/latest.lib.php:11) in /home/도메인/public_html/board/lib/latest.lib2.php on line 11
이라고 나네여.... 뭐가 잘못된 건지...
몇일전...처음에 cont.html파일을 연결시켰을 때는 아무 문제 없이 최신글 게시판이 나왔거든요..
어케 해야하나요?
참 그 파일 11번째 줄은 소스는 밑에 꺼에요..
function latest($skin_dir='', $test2, $rows=10, $len=40)
우선은 cont.html 파일의 소스를 보여드릴께요... (최신글 불러오는 곳이랍니다.)
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "STYLE");
$html_title = "2bit > main 페이지";
?>
<br><br>
<table width=750 cellpadding=0 cellspacing=0> <colgroup width=''> <colgroup width=5> <colgroup width=170>
<tr><td width=10 height="30">
<td width=740 valign=top>
<table width=730 align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="360" rowspan="2" valign="top" align=center><? latest('basic',test1, 5, 20); ?></td>
<td width="20" rowspan="2" align="center"></td>
<td width="360" align="center" valign="top"><? latest('basic', test2, 5, 20); ?></td> </tr>
</table></td>
</tr></table>
이렇게 소스를 짰는뒤... 불러오니까 밑의 오류가 나는거에요... 으흑흑....
Fatal error: Cannot redeclare latest() (previously declared in /home/도메인/public_html/board/lib/latest.lib.php:11) in /home/도메인/public_html/board/lib/latest.lib2.php on line 11
이라고 나네여.... 뭐가 잘못된 건지...
몇일전...처음에 cont.html파일을 연결시켰을 때는 아무 문제 없이 최신글 게시판이 나왔거든요..
어케 해야하나요?
참 그 파일 11번째 줄은 소스는 밑에 꺼에요..
function latest($skin_dir='', $test2, $rows=10, $len=40)
댓글 전체
헉... 고맙습니다.~~~~~~~~~~~~~~~~~~~~~~~ ^^ _._ -.- _._ -.- 감따~~~~~~~
lib 에 latest.lib2.php 라는 파일은 없어야 합니다.
latest.lib.php 가 있어야 하겠구요.
latest.lib.php 가 있어야 하겠구요.