index를 다른 폴더에 두고 최신글을 불러오려면 어떻게 하면 될까요?
index폴더는 다음과 같습니다.
/include/aaa/index.php
/include/bbb/index.php
최신글을 불러오려면 어떻게 경로를 설정해야 하는지 알려주세요.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
/include/aaa/index.php
/include/bbb/index.php
최신글을 불러오려면 어떻게 경로를 설정해야 하는지 알려주세요.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
댓글 3개
14년 전
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
<?
include_once("aaa/index.php");
include_once("bbb/index.php");
?>
$g4['title'] = "";
include_once("./_head.php");
?>
제가 질문의요지를 잘못이해했는지는 모르겠지만 해당폴더들의 index.php 파일을 불러오는거라면 위 함수로 해보세요~
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
<?
include_once("aaa/index.php");
include_once("bbb/index.php");
?>
$g4['title'] = "";
include_once("./_head.php");
?>
제가 질문의요지를 잘못이해했는지는 모르겠지만 해당폴더들의 index.php 파일을 불러오는거라면 위 함수로 해보세요~
14년 전
index를 불러오는 것이 아니고
bbb폴더에 있는 index.php에 최신글을 불러와야 합니다.
bbb폴더에 있는 index.php에 최신글을 불러와야 합니다.
14년 전
일반 페이지에 아래를 넣어두고 최신글을 불러와보세요
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
게시글 목록
| 번호 | 제목 |
|---|---|
| 284348 | |
| 284336 | |
| 284333 | |
| 284332 | |
| 284320 | |
| 284318 | |
| 284316 | |
| 284313 | |
| 284307 | |
| 284306 | |
| 284303 | |
| 284298 | |
| 284296 | |
| 284290 | |
| 284286 | |
| 284280 | |
| 284277 | |
| 284272 | |
| 284261 | |
| 284259 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기