일반페이지를 만들어 최신글을 출력하려고합니다.. 정보
일반페이지를 만들어 최신글을 출력하려고합니다..본문
폴더를 하나만들어 그곳에 최근게시물만 뽑는 페이지를 만들려고 하는데..
최신글출력할려면 하단처럼 latest.lib.php 하고 최근게시물 소스넣으면
출력되지 않나요.. 헤메다 이렇게 글올립니다..
알려주세요..부탁드려요
<?
include_once("$g4[path]/lib/latest.lib.php");
?>
<table>
<tr>
<td><?=latest("vztext", "in", 5, 26);?></td>
</tr>
</table>
최신글출력할려면 하단처럼 latest.lib.php 하고 최근게시물 소스넣으면
출력되지 않나요.. 헤메다 이렇게 글올립니다..
알려주세요..부탁드려요
<?
include_once("$g4[path]/lib/latest.lib.php");
?>
<table>
<tr>
<td><?=latest("vztext", "in", 5, 26);?></td>
</tr>
</table>
댓글 전체
_common.php 넣어야 될걸요
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.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
리얼웹님이 말씀하신대로 하니가 이렇게 떠버리네요..ㅠㅠ
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"); 를 가장먼저 적어주신후에
파일을 작성하시면 되겠습니다.
내용을 수정합니다.
<?
$g4_path = ".."; // common.php 의 상대 경로 <-- 여기를 수정합니다.
include_once("$g4_path/common.php");
?>
그리고 해당 file에 include_once("./_common.php"); 를 가장먼저 적어주신후에
파일을 작성하시면 되겠습니다.