이것 좀 봐주세요^^ 정보
이것 좀 봐주세요^^본문
달력스킨에서 해당날짜를 클릭하면 팝업창이 뜨는데
----------------------
Warning: main(gnuboard/common.php): failed to open stream: 그런 파일이나 디렉토리가 없음 in /free/home/tgcaritas/html/gnuboard/_common.php on line 3
Warning: main(): Failed opening 'gnuboard/common.php' for inclusion (include_path='.:/usr/local/lib/php') in /free/home/tgcaritas/html/gnuboard/_common.php on line 3
Fatal error: Call to undefined function: sql_fetch() in /free/home/tgcaritas/html/gnuboard/pop_schedule.php on line 24
Warning: main(): Failed opening 'gnuboard/common.php' for inclusion (include_path='.:/usr/local/lib/php') in /free/home/tgcaritas/html/gnuboard/_common.php on line 3
Fatal error: Call to undefined function: sql_fetch() in /free/home/tgcaritas/html/gnuboard/pop_schedule.php on line 24
-------------------
이런오류가 나는데 어떻게 해야하나요?
왕초보입니다. 꼭 좀 도와주세요
참고사이트
pop_schedule.php 파일 내용
<?
include_once("./_common.php"); [이부분을 "nuboard/_common.php"로도
include_once("./_common.php"); [이부분을 "nuboard/_common.php"로도
수정했었는데도 오류가 났었습니다.]
if ($member[mb_level] < $board[bo_read_level]) {
alert('글을 읽을 권한이 없습니다.','javascript:window.close()');
exit;
}
alert('글을 읽을 권한이 없습니다.','javascript:window.close()');
exit;
}
$g4[title] = "일정보기";
$tmp_write_table = $g4[write_prefix] . $bo_table; // 게시판 테이블 전체이름
// 0~9 월까지를 01 ~ 09 로 만들어 준다.
if((int)$day <= 9){
$day = "0".$day;
}
if((int)$month <= 9){
$month = "0".$month;
}
$thedate = $year.$month.$day;
$latest_skin_path = "$g4[path]/skin/latest/calendar";
// 0~9 월까지를 01 ~ 09 로 만들어 준다.
if((int)$day <= 9){
$day = "0".$day;
}
if((int)$month <= 9){
$month = "0".$month;
}
$thedate = $year.$month.$day;
$latest_skin_path = "$g4[path]/skin/latest/calendar";
$list = array();
$sql = " select * from {$g4[board_table]} where bo_table = '$bo_table'";
$board = sql_fetch($sql);
$sql = " select * from {$g4[board_table]} where bo_table = '$bo_table'";
$board = sql_fetch($sql);
$sql = " select * from $tmp_write_table where wr_comment > -1 AND (wr_link1 <= $thedate AND wr_link2 >= $thedate) order by wr_id desc limit 0, 10";
//explain($sql);
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++) {
$list[$i] = get_list($row, $board, $latest_skin_path, 70);
//explain($sql);
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++) {
$list[$i] = get_list($row, $board, $latest_skin_path, 70);
$html = 0;
if (strstr($list[$i][wr_option], "html1"))
$html = 1;
else if (strstr($list[$i][wr_option], "html2"))
$html = 2;
if (strstr($list[$i][wr_option], "html1"))
$html = 1;
else if (strstr($list[$i][wr_option], "html2"))
$html = 2;
$list[$i][content] = conv_content($list[$i][wr_content], $html);
}
}
include_once("$latest_skin_path/pop.skin.php");
?>
댓글 전체

include_once("./gnuboard/_common.php");
include_once("./_common.php");
경로문제라면 다음내용참고하세요
g4 파일마다 들어있는 $g4_path, _common.php 설정 및 사용법
http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=271
g4 파일마다 들어있는 $g4_path, _common.php 설정 및 사용법
http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=271
파일경로
gnuboard/_common.php
<?
$g4_path = "gnuboard"; // 이부분을 "."으로 하면 에러가납니다.
include_once("$g4_path/common.php");
?>
gnuboard/pop_schedule.php
("./gnuboard/_common.php");
("./_common.php");
("_common.php");
넣어봤는데 다 에러 납니다.
그리고 24번째줄의 명령어에도 에러가나는데
$board = sql_fetch($sql);
이부분입니다.
정말 모르겠어요ㅜ.ㅜ
gnuboard/_common.php
<?
$g4_path = "gnuboard"; // 이부분을 "."으로 하면 에러가납니다.
include_once("$g4_path/common.php");
?>
gnuboard/pop_schedule.php
("./gnuboard/_common.php");
("./_common.php");
("_common.php");
넣어봤는데 다 에러 납니다.
그리고 24번째줄의 명령어에도 에러가나는데
$board = sql_fetch($sql);
이부분입니다.
정말 모르겠어요ㅜ.ㅜ
Warning: main(gnuboard/common.php): failed to open stream: 그런 파일이나 디렉토리가 없음 in /free/home/tgcaritas/html/gnuboard/_common.php on line 3
gnuboard 폴더에 common.php 가 없다는 뜻입니다. common.php 파일이 있는지 확인해 보시고, 있는데도 같은 에러가 뜬다면 common.php 파일을 다시 업로드 해보세요.
gnuboard 폴더에 common.php 가 없다는 뜻입니다. common.php 파일이 있는지 확인해 보시고, 있는데도 같은 에러가 뜬다면 common.php 파일을 다시 업로드 해보세요.