초보 최근게시물 오류좀 봐주세요.. 정보
초보 최근게시물 오류좀 봐주세요..본문
그누보드는 설명서에 나오는것처럼 최상위에(루트) gnuboard4폴더에 설치했구요..
최근게시물 스킨 다운받아 gnuboard4/skin/latest 에 넣었습니다. simple이라는 것을 넣었습니다.
루트에 있는 index.html 를 열어 가장위에
<?
include_once("./gnuboard4/_common.php"); /
include_once("./gnuboard4/lib/latest.lib.php");
?>
집어넣고
게시물 들어가고싶은 부분에
<?=latest("simple","게시판명","3","5");?>
이렇게 넣었습니다.
그리고 index.php로 저장하였습니다.( html로 하면 안된다고 해서....)
그다음 서버들어가서...
gnuboard4폴더 안에 _common.php 파일 열어서..
<?
$g4_path = "./gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
이렇게 수정하였습니다.
다된거 아닌가요?
이렇게 해서 사이트 도메인을 치니 최근게시물이 들어가 있기는 하더라구요....
여기서 질문..근데..
관리자모드------- > http://abcdef.co.kr/gnuboard4/
로 접속을 시도하면 아래와 같은 오류가 뜹니다.
관리자모드를 들어갈수가 없어요.. 백업 받아놓은 _common.php을 다시 놓으면
최근게시물이 삽입은 안되지만 관리자모드로 접속은 잘 됩니다..
무엇이 문제 인가요??? 좀 알려주세요...
Warning: main(./gnuboard4/common.php) [function.main]: failed to create stream: No such file or directory in /home/hosting_users/eskm/www/gnuboard4/_common.php on line 3
Warning: main() [function.main]: Failed opening './gnuboard4/common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/eskm/www/gnuboard4/_common.php on line 3
Warning: main(/lib/latest.lib.php) [function.main]: failed to create stream: No such file or directory in /home/hosting_users/eskm/www/gnuboard4/index.php on line 3
Warning: main() [function.main]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/eskm/www/gnuboard4/index.php on line 3
댓글 전체
gnuboard4 폴더가 그누보드 루트 폴더가 된다고 말할 수 있습니다.
<?
include_once("./_common.php");
include_once("./lib/latest.lib.php");
?>
<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
이렇게 해보세요!
해결 되셨다면 아래 링크 한번만 클릭좀 해주세요. 저도 파란 이벤트 도전중입니다.;;;
http://mailintro.paran.com/sms12/?uid=virus9355
========================================
<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
========================================
루트에 있는 _common.php 파일
========================================
<?
$g4_path = "./gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
========================================
루트에 있는 index.php 파일
(루트에 있는 _common.php 파일을 include 하는게 좋습니다.)
========================================
<?
include_once("./_common.php"); /
include_once("$g4[path]/lib/latest.lib.php");
?>
게시물 들어가고싶은 부분에
<?=latest("simple","게시판명","3","5");?>
========================================
이렇게 하시면 관리자모드, 최근게시물 다 뜰 것 같습니다.
그리고 파란 이벤트 클릭했습니다. ^^
오류가 또 뜨네요.. 오류내용은 다음과 같습니다.
Parse error: parse error, unexpected '/' in /home/hosting_users/eskm/www/index.php on line 2
루트에 있는 index.php 파일
(루트에 있는 _common.php 파일을 include 하는게 좋습니다.)
========================================
<?
include_once("./_common.php"); / <-- 얘("/") 를 없애주시거나 하나 더 추가하세요... ("//") 이렇게
include_once("$g4[path]/lib/latest.lib.php");
?>