최근게시물좀 도와주세요 ㅠㅠ > 그누4 질문답변

그누4 질문답변

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

최근게시물좀 도와주세요 ㅠㅠ 정보

최근게시물좀 도와주세요 ㅠㅠ

본문

우선
/html/gnuboard4
이렇게 계정에바로 저이름으로 그누보드를 설치했구요

메인index.htm파일은(최근게시물을 넣을 페이지)
/html/ribbon
여기안에 있습니다...

먼저 뭐를 해야하나요?;;

_common.php파일을 만들어서 어느 폴더에 넣어야하나요??;
(그리고 위파일 소스?좀 알려주세요..제홈에맞는 경로랑 ㅠㅠ)

그리고 최근게시물을 출력할 페이지에는 어떤거를 넣어야하는지요?
<?=latest("clubdslr_black", "malkeum", 4, 10)?>요렇게만 넣으면 되나요?

자세히 부탁드립니다..게시판을 다뒤져도 자꾸 오류만 나고요 ㅠㅠ

부탁드립니다...ㅠㅠ
  • 복사

댓글 전체

/html 이 Document_root 라고 가정하고
그 아래에 index 파일을 넣으시는게 편하구요.

상단에

<?
$g4_path="../gnuboard4";
include_once("../gnuboard4/common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

넣어 주세요
index.htm파일안에
<?
$g4_path="../gnuboard4";
include_once("../gnuboard4/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
요걸넣으라는 말씀인가요?;
근데_common.php파일은 따로 안만드나요?
그까이꺼 뭐 대에충 ㅋㅋ

그 파일 내용이 그거에여

<?
$g4_path="../gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>

만드시려면 이렇게 만드세요

파일을 만들면 index파일에도 인크루드 수정 해주셔야 합니다.
 index 파일과 동일한 폴더에 있다고 가정하고
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

위에 소스 수정 했습니다. _common.php은 자체에 $g4_path를 담고 있어서...

결론은 _common.php를 인크루드 하지 않고 소스를 넣어 준겁니다.

header 와 footer를 나눠서 작업 하신다면  header에 담으시면 되니까
따로 만드나 안만드나 별차이는 없어요
html/ribbon/폴더안에 index.htm 과 _common.php파일을 넣었어요 ....
그누보드는
html/gnuboard4여기에 설치된상태구요...

 
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /free/home/malkeumnet/html/ribbon/_common.php on line 3

Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /free/home/malkeumnet/html/ribbon/_common.php on line 3

Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /free/home/malkeumnet/html/ribbon/index.htm on line 54

Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /free/home/malkeumnet/html/ribbon/index.htm on line 54
 
요런메세지가뜨네요;;;
자꾸 죄송;;바본가봐요 ㅠㅠ
특이하네요 _common.php 는 두줄뿐인데 line 3 이 오류라니 ㅠㅠ

_common.php 파일 소스 보여 주세요~

latest.lib.php은 index 파일밖에 사용하는데 없을껍니다.

최근글 불러오는 함수에요~
© SIRSOFT
현재 페이지 제일 처음으로