일반페이지를 만들어 최신글을 출력하려고합니다.. > 그누4 질문답변

그누4 질문답변

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

일반페이지를 만들어 최신글을 출력하려고합니다.. 정보

일반페이지를 만들어 최신글을 출력하려고합니다..

본문

폴더를 하나만들어 그곳에 최근게시물만 뽑는 페이지를 만들려고 하는데..
최신글출력할려면 하단처럼 latest.lib.php 하고 최근게시물 소스넣으면
출력되지 않나요.. 헤메다 이렇게 글올립니다..
알려주세요..부탁드려요

<?
include_once("$g4[path]/lib/latest.lib.php");
?>
<table>
<tr>
<td><?=latest("vztext", "in", 5, 26);?></td>
</tr>
</table>

댓글 전체

Warning: main(./_common.php) [function.main]: failed to open stream: No such file or directory in /home/youngku/public_html/pcbang/index.php on line 2

Warning: main() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home/youngku/public_html/pcbang/index.php on line 2

Warning: main(/lib/latest.lib.php) [function.main]: failed to open stream: No such file or directory in /home/youngku/public_html/pcbang/index.php on line 3

Warning: main() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home/youngku/public_html/pcbang/index.php on line 3

Fatal error: Call to undefined function: latest() in /home/youngku/public_html/pcbang/index.php on line 5


 리얼웹님이 말씀하신대로 하니가 이렇게 떠버리네요..ㅠㅠ
_common.php 파일을 작업하실 디렉토리에 만드시고

내용을 수정합니다.
<?
$g4_path = ".."; // common.php 의 상대 경로 <-- 여기를 수정합니다.
include_once("$g4_path/common.php");
?>

그리고 해당 file에 include_once("./_common.php"); 를 가장먼저 적어주신후에
파일을 작성하시면 되겠습니다.
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT