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

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

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

댓글 4개

_common.php 넣어야 될걸요

<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
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


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

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

그리고 해당 file에 include_once("./_common.php"); 를 가장먼저 적어주신후에
파일을 작성하시면 되겠습니다.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
14년 전 조회 2,463
14년 전 조회 936
14년 전 조회 864
14년 전 조회 2,333
14년 전 조회 1,647
14년 전 조회 951
14년 전 조회 978
14년 전 조회 1,543
14년 전 조회 1,010
14년 전 조회 1,506
14년 전 조회 825
14년 전 조회 890
14년 전 조회 685
14년 전 조회 744
14년 전 조회 706
14년 전 조회 1,002
14년 전 조회 1,002
14년 전 조회 877
14년 전 조회 5,333
14년 전 조회 1,656
🐛 버그신고