테스트 사이트 - 개발 중인 베타 버전입니다

게시판 추출 도와주세요. 채택완료

아쿠아틴티드 9년 전 조회 6,758

 

그누보드5 게시판을 처음 사용하는데,

index.html 메인 페이지에 게시물 추출을 하고 싶어요.

 

제일 상단에

 

<?php
include_once('/gnuboard5/common.php');
include_once(G5_LIB_PATH.'/latest.lib.php');
?>

 

라고 넣고

 

   <?php echo latest("basic","notice", 5, 25);?>

 

추추되었으면 하는 부분에 이렇게 넣었는데

이거 넣은 하단으로 다 잘려 보이는 오류가 나요ㅠㅠ

 

상단에 저렇게 적는게 맞는건가요?

 

제발 도와주세요ㅠ_ㅠ

 

 

 

</p><p><?php 
include_once('/gnuboard5/common.php'); 
include_once(G5_LIB_PATH.'/latest.lib.php'); 
?> </p><p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="noopener noreferrer">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"><a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="noopener noreferrer">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a></a>">
<html xmlns="<a href="<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="noopener noreferrer">http://www.w3.org/1999/xhtml</a>"><a href="http://www.w3.org/1999/xhtml" target="_blank" rel="noopener noreferrer">http://www.w3.org/1999/xhtml</a></a>" xml:lang="ko" lang="ko">
<head></p><p>

 

 

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
인덱스웹

include_once('./_common.php')

 

<html>

<body>

   <?php echo latest("basic","notice", 5, 25);?>

</body>

</html>

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

p
9년 전

</p><p><?php
include_once('./common.php');
include_once(G5_LIB_PATH.'/latest.lib.php');</p><p>?></p><p><!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8"></p><p></head></p><p><body></p><p><?php echo latest("basic","notice", 5, 25);?> </p><p></body></p><p></html></p><p>

위와 같이 해보세요. 그누보드5는 html5로 제작이 되어 있으므로 xhtml 1.0을 이용하시는 것은 바르지 못합니다. 

위의 경우는 index파일이 gnuboard5폴더 안에 있을 경우이고요.

만일 index파일이 gnuboard5폴더 상위에 있을 경우는

include_once('./common.php');

부분을

include_once('gnuboard5/common.php');

로 수정해서 적용해 보세요.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

p
port
9년 전
일반적으로 html도 상관 없습니다. 아파치 서버에서 기본적으로 html도 php 인식이 되도록 되어 있습니다.
잘못 적용하신게 있는지 다시 한번 확인해 보세요.

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인