그누보드경로문제? > 그누3질답

그누3질답

그누보드경로문제? 정보

그누보드 그누보드경로문제?

본문

안녕하세요? 이번에 그누보드를 처음 접해보고 편리한 기능에 써보기로 맘먹었으나...
문제가 발생해서 도움을 요청합니다...
에러메세지는
Warning: Failed opening './calendar.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/01/xjunior12/www/home.php on line 65

이렇게 나오는데, 분명 경로문제 인것 같기두 한데,...
제로보드처럼 절대경로를 입력하는 것두 아니구 해서, 어찌해야 될지 모르겠습니다.
이런 기본적인것이 안되니 다른것에 손을 댈수가 없네요...
달력도 넣고 싶고 로그인도 넣고 싶고, 카운터도 넣어야 하는데...
무슨 문제일까요?
해결방안을 알려주시면 감사하겠습니다...ㅠ.ㅠ
여기 아무리 뒤져도 못찾겠네여....
  • 복사

댓글 전체

아~ 자세한 설명이 부족했습니다...죄송합니다...;;
현재 쓰고 있는건 제로보드인데, 그누보드를 잘 몰라서 제로보드는 놔둔채로 그누보드 폴더만 따로 만들어서
작업하고 있습니다... 그러니까,
home.php의 경로는 / <--- 이고, calendar.php는 /gnu3/ 입니다...
파일의 내용은
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "DESIGN");
?>
<?
//--------------------------------------------------------------------
//  JJ21 Calendar
//
//  - calendar.php / calendar.css
//
//  - parameters: $year, $month
//
//  - Usages
//      * http://your domain/calendar.php
//      * Calendar size can be adjusted by changing $cellh, $cellw
//      * Text size by editing calendar.css
//
//  - Ver. 1.0/ 2000. 11. 15.
//      * 달력 기능 완성
//
//  - Ver. 1.1/ 2000. 11. 19.
//      * 일요일, 토요일 색깔 지정.
//      * W3C(www.w3c.org/wai)의 접근성 규정에 맞게 테이블의 HTML 조정.
//
//  - Programmed by Sungpil Kim(www.ThreeS.org
 * 그루보드 게시판에서 블로그형 스킨에 사용하기위해서 추가하는것
 **********************************************************************/
if($bo_table) {
$sql = "select count(wr_id) as blog_count, conv(substring(wr_datetime, 9, 2), 10, 10) as blog_day
        from {$cfg[write_table_prefix]}{$bo_table}
where wr_datetime>='$year-$month-01' and wr_datetime<='$year-$month-31 9'
group by left(wr_datetime, 10) ";
$result = sql_query($sql);

$write_blog = array_fill(1,$maxdate,-1);

for ($i = 0; $row = mysql_fetch_array($result); $i++) {
$write_blog[$row[blog_day]] = $row[blog_count];
}
mysql_free_result($result);
}
/**********************************************************************/

// Style에서 띄어쓰면 안됨
echo("
<link rel=stylesheet href='./bbs/calendar.css' type=text/css>

<DIV align=center>
<TABLE cellSpacing=0 cellPadding=0 width=$tablew border=1 bordercolorlight=#CCCCCC bordercolordark=white bgcolor=white>
<TR>
  <!-- 월 표시 및 이동 -->
  <TD width=100% colspan=7 class=title>
    <P class=title>
    <a href=./?doc=$doc&bo_table=$bo_table&year=$prevyear&month=$prevmonth><span class=smaller>◀</span></a>
    $year 년 $month 월
    <a href=./?doc=$doc&bo_table=$bo_table&year=$nextyear&month=$nextmonth><span class=smaller>▶</span></a>
    </P>
  </TD>
  <!-- 월 표시 및 이동 끝 -->
</TR>
<TR>
  <!-- 요일 헤더 -->
  <TH scope=col width=$cellw class=sunday><p class=sunday>일</p></TH>
  <TH scope=col width=$cellw class=weekday><p class=weekday>월</p></TH>
  <TH scope=col width=$cellw class=weekday><p class=weekday>화</p></TH>
  <TH scope=col width=$cellw class=weekday><p class=weekday>수</p></TH>
  <TH scope=col width=$cellw class=weekday><p class=weekday>목</p></TH>
  <TH scope=col width=$cellw class=weekday><p class=weekday>금</p></TH>
  <TH scope=col width=$cellw class=saturday><p class=saturday>토</p></TH>
  <!-- 요일 헤더 끝 -->
</TR>
");

echo("
<!-- 날짜 테이블 -->
<TR>
");

$date = 1;
while ($date <= $maxdate) {
  if ($date == '1') {
    $offset = date('w', mktime(0, 0, 0, $month, $date, $year));  // 0: sunday, 1: monday, ..., 6: saturday
    SkipOffset($cellh, $cellw, $offset);
  }

  if ( $date == $thisday  &&  $year == $thisyear &&  $month == $thismonth) {
    $cstyle = 'today';
  } else {
    $cstyle = 'valid';
  }
  $wstyle =  'writeday';

  switch ($offset) {            // 요일에 따라 날짜의 색깔 결정
    case 0: $dstyle = 'sunday';
            break;
    case 6: $dstyle = 'saturday';
            break;
    default: $dstyle = 'weekday';
  }

  $date_array = array(sprintf('%04d', $year), sprintf('%02d', $month), sprintf('%02d', $date));
  $date_stext = implode("-", $date_array);

  if($bo_table && $write_blog[$date] > 0) {
  $date_link = "<a href='./?doc=bbs/gnuboard.php&bo_table=$bo_table&sselect=wr_datetime&soperator=0&stext=$date_stext'><p class=$wstyle>{$date}</p>";
  } else {
$date_link = "<p class=$dstyle>{$date}</p>";
  }

  echo "  <TD height=$cellh width=$cellw class=$cstyle>{$date_link}</TD> \n";

  $date++;
  $offset++;

  if ($offset == 7) {
    echo "</TR> \n";
    if ($date <= $maxdate) {
      echo "<TR> \n";
    }
    $offset = 0;
  }

} // end of while

if ($offset != 0) {
  SkipOffset($cellh, $cellw, (7-$offset));
  echo "</TR> \n";
}

echo("
<!-- 날짜 테이블 끝 -->

</TABLE>
</DIV>
")

?>

입니다...
지금은 달력만 가지고 이렇게 헤매고 있는데, 카운터도 않나오고 ... 참, 난감하군요...ㅠ.ㅠ
말씀대로 혹시나 해서 방금, 잠깐 경로 수정을 해서 /gnu3/에 home.php 를 넣고 그에따른 이미지폴더도
/gnu3/에 넣고 해보았는데, 이번에는 이미지를 제대로 인식하지 못하고 ...ㅠ.ㅠ
혹시 괜찮으시다면 직접 안에 들어가서 보시겠습니까? 제가 설명두 잘 못하구 해서 답답하실것 같네요...
그렇게 해주신다면 쪽지로 홈피 주소와 비밀번호를 알려드리겠습니다...
처음질문의 에레는 경로의 문제입니다.
/home.php 에서
/gnu3/calendar.php 호출을 어떻게 하셨는지 모르겠군요.

좀더 자세한 내용는
home.php가 어느 경로에 있으며 파일의 내용이 어떻게 되는지
calendar.php가 어느 경로에 있으며 파일의 내용이 어떻게 되는지를 알아야 처리가 가능합니다.
답변정말 감사합니다... 말씀대루 일단 캘린더를 보긴봤는데,...
인덱스를 타고 들어가게 설정하라는 말씀을 이해를 못하겠습니다...ㅠ.ㅠ
말그대로 역시 경로에 문제가 있었던건가요?
그누보드를 /gnu3 디렉토리에 설치하시고 그누보드의 환경에서 돌아가도록 설정된 프로그램을 그누보드 외의 다른 상위 경로에서 실행하는것을 피해주십시오.
일단 박준영님이 작업하신 home.php를 /에 넣지 마시고 /gnu3에서 index.php를 타고 들어가도록 설정하시는것이 다른것을 사용하더라고 쉽게 접근하실수 있을것 같습니다.

일단 calendar.php를 보실려면 다음처럼 URL로 호출하시면 보실수 있습니다.
http://님이사이트/gnu3/?doc=calendar.php
© SIRSOFT
현재 페이지 제일 처음으로