레

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

폴더를 하나만들어 그곳에 최근게시물만 뽑는 페이지를 만들려고 하는데..
최신글출력할려면 하단처럼 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 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
11-09-01 조회 1,102
11-09-01 조회 1,127
11-09-01 조회 1,691
11-09-01 조회 1,158
11-09-01 조회 1,639
11-09-01 조회 957
11-09-01 조회 1,023
11-09-01 조회 820
11-09-01 조회 873
11-09-01 조회 824
11-09-01 조회 1,143
11-09-01 조회 1,146
11-09-01 조회 1,020
11-09-01 조회 5,469
11-09-01 조회 1,793
11-09-01 조회 905
11-09-01 조회 1,041
11-08-31 조회 922
11-08-31 조회 1,089
11-08-31 조회 1,063