index.html에 최신글 넣기 에러코드...경로

· 2012-03-07 (수) 16:10:23 · 2628 · 2
index.html에 파일에 최신글을 넣고 싶습니다.
찾아보니까.



를 넣으라고 되어있는데..넣고나면 에러가..

Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /home1/ims24/public_html/index.html on line 47

Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/ims24/public_html/index.html on line 47

Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/tmp:/home1/ims24) in /home1/ims24/public_html/index.html on line 48

Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /home1/ims24/public_html/index.html on line 48

Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/ims24/public_html/index.html on line 48

Fatal error: Call to undefined function latest() in /home1/ims24/public_html/index.html on line 50

뜹니다.

index.html은 public_html/안에 있고
그누보드는 public_html/gnuboard4 안에 있습니다.

게시판은 기본 스킨을 사용했고 "news"라고 만들었습니다.
index.html을 public_html/gnuboard4 안에 넣고 테스트해보면
아래와 같은 에러가 같이 뜨고,,, 게시판이 출력됩니다.

Warning: Cannot modify header information - headers already sent by (output started at /home1/ims24/public_html/gnuboard4/index.html:7) in /home1/ims24/public_html/gnuboard4/common.php on line 8

도와주세요~
|

댓글 2개

2012-03-07 (수) 18:13:15
common.php 파일의 경로가 잘 못 되어서 그렇습니다.

님 경우
$g4[path] = "gnuboard4";
가 필요합니다.

include_once("./_common.php");
//현재 디렉토리에서 _common.php 을 찾게 됩니다. 따라서
// $g4[path] = "gnuboard4"; 를 한 줄 넣어주고

$g4[path] = "gnuboard4";
include_once("$g4[path]/_common.php");

//이렇게 바꾸면 gnuboard4/_common.php 파일을 찾겠죠
//_common.php파일이 님 경우 /gnuboard4 디렉토리에 있으니까 그렇습니다.

//아래와 같이 해보시겠어요
$g4_path = 'gnuboard4';
require_once $g4_path . '/common.php';
include_once("$g4[path]/lib/latest.lib.php");
2012-03-07 (수) 18:16:12
include_once("./_common.php");
파일에

$g4_path = ".";

부분문제 아닐까요?
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
12-03-07 조회 1,389
12-03-07 조회 1,870
12-03-07 조회 1,086
12-03-07 조회 1,649
12-03-07 조회 1,645
12-03-07 조회 2,302
12-03-07 조회 1,585
12-03-07 조회 2,629
12-03-07 조회 1,674
12-03-07 조회 2,349
12-03-07 조회 1,416
12-03-07 조회 3,451
12-03-07 조회 1,652
12-03-07 조회 1,713
12-03-07 조회 1,842
12-03-07 조회 1,661
12-03-07 조회 1,309
12-03-07 조회 1,403
12-03-07 조회 1,736
12-03-07 조회 1,647