초

에러 해결 방법 좀

· 2010-05-29 (토) 17:04:18 · 2099 · 14
Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php on line 4

Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php on line 4

Warning: Cannot modify header information - headers already sent by (output started at /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php:4) in /web/home/hyunho/html/ybnara/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php:4) in /web/home/hyunho/html/ybnara/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php:4) in /web/home/hyunho/html/ybnara/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php:4) in /web/home/hyunho/html/ybnara/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php:4) in /web/home/hyunho/html/ybnara/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /web/home/hyunho/html/ybnara/extend/gr_select_list.lib.php:4)

http://hyunho.elogin.co.kr/ybnara/bbs/board.php?bo_table=move_play
영상보기 누르면 팝업으로창이 뜨는데.. 에러가 나네요.ㅜㅜ

댓글 14개

http://hyunho.elogin.co.kr/ybnara/skin/board/pandora/movie.php?bo_table=move_play&wr_id=43
경로 오류인듯합니다
include_once (파일이 없으도 계속 실행)
require_once (파일이 없으면 실행 중지)으로 변경해서 한번 해보세요
어느 파일을 수정해야하나요???
movie.php << 이파일에서 추적해보시면 될것 같습니다.
<? //-- HTML 태그용 PLAY

$g4_path = "../../..";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/common.lib.php");
include_once("$g4[path]/head.sub.php");

// wr_id 값이 있으면 글읽기
if ($wr_id) {
// 글이 없을 경우 해당 게시판 목록으로 이동
if (!$write[wr_id]) {
$msg = "글이 존재하지 않습니다.\\n\\n글이 삭제되었거나 이동된 경우입니다.";
if ($cwin)
alert_close($msg);
else
alert($msg, "./board.php?bo_table=$bo_table");
}

// 로그인된 회원의 권한이 설정된 읽기 권한보다 작다면
if ($member[mb_level] < $board[bo_read_level]) {
if ($member[mb_id])
alert("글을 읽을 권한이 없습니다.");
else
alert("글을 읽을 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.", "./login.php?wr_id=$wr_id{$qstr}&url=".urlencode("board.php?bo_table=$bo_table&wr_id=$wr_id"));
}

// 자신의 글이거나 관리자라면 통과
if (($write[mb_id] && $write[mb_id] == $member[mb_id]) || $is_admin)
;
else {
// 비밀글이라면
if (strstr($write[wr_option], "secret")) {
$ss_name = "ss_secret_{$bo_table}_$write[wr_num]";
//$ss_name = "ss_secret_{$bo_table}_{$wr_id}";
// 한번 읽은 게시물의 번호는 세션에 저장되어 있고 같은 게시물을 읽을 경우는 다시 패스워드를 묻지 않습니다.
// 이 게시물이 저장된 게시물이 아니면서 관리자가 아니라면
//if ("$bo_table|$write[wr_num]" != get_session("ss_secret"))
if (!get_session($ss_name))
goto_url("./password.php?w=s&bo_table=$bo_table&wr_id=$wr_id{$qstr}");

set_session($ss_name, TRUE);
}
}

// 한번 읽은글은 브라우저를 닫기전까지는 카운트를 증가시키지 않음
$ss_name = "ss_view_{$bo_table}_{$wr_id}";
if (!get_session($ss_name))
{
sql_query(" update $write_table set wr_hit = wr_hit + 1 where wr_id = '$wr_id' ");

// 자신의 글이면 통과
if ($write[mb_id] && $write[mb_id] == $member[mb_id])
;
else {
// 회원이상 글읽기가 가능하다면
//if ($board[bo_read_level] > 1) {
// 글읽기 포인트가 음수이고 회원의 포인트가 0 이거나 작다면
//if ($board[bo_read_point] < 0 && $member[mb_point] <= 0)
if ($member[mb_point] + $board[bo_read_point] < 0)
alert("보유하신 포인트(".number_format($member[mb_point]).")가 없어나 모자라서 글읽기(".number_format($board[bo_read_point]).")가 불가합니다.\\n\\n포인트를 모으신 후 다시 글읽기 해 주십시오.");

insert_point($member[mb_id], $board[bo_read_point], "$board[bo_subject] $wr_id 글읽기");
//}
}

set_session($ss_name, TRUE);
}

$g4[title] = "$group[gr_subject] > $board[bo_subject] > " . strip_tags(conv_subject($write[wr_subject], 255));
} else {
if ($member[mb_level] < $board[bo_list_level]) {
if ($member[mb_id])
alert("목록을 볼 권한이 없습니다.");
else
alert("목록을 볼 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.", "./login.php?wr_id=$wr_id{$qstr}&url=".urlencode("board.php?bo_table=$bo_table&wr_id=$wr_id"));
}

if (!$page) $page = 1;

$g4[title] = "$group[gr_subject] > $board[bo_subject] $page 페이지";
}

$view = get_view($write, $board, $board_skin_path);

if (strstr($sfl, "subject"))
$view[subject] = search_font($stx, $view[subject]);

$html = 0;
if (strstr($view[wr_option], "html1"))
$html = 1;
else if (strstr($view[wr_option], "html2"))
$html = 2;

$view[content] = conv_content($view[wr_content], $html);
if (strstr($sfl, "content"))
$view[content] = search_font($stx, $view[content]);
$view[content] = preg_replace("/(\<img )([^\>]*)(\>)/i", "\\1 name='target_resize_image[]' onclick='image_window(this)' style='cursor:pointer;' \\2 \\3", $view[content]);

?>

<?
$row = get_member($view[mb_id]);
$mb_nick = get_sideview($row[mb_id], $row[mb_nick], $row[mb_email], $row[mb_homepage]);
?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">

<style type="text/css">
<!--
BODY {
margin:0 0 0 0;
font-family:"gulim";
font-size: 12px;
COLOR: #333333;
LINE-HEIGHT: 150%;
letter-spacing: 0px; }
}

td, p, input, button, textarea, select, .c1 {font-family:"gulim"; font-size: 12px; COLOR: #555555; LINE-HEIGHT: 150%; letter-spacing: 0px;}

.scrollbar { scrollbar-face-color: #F7f7f7; scrollbar-shadow-color:#E9E9E7; scrollbar-highlight-color:#FFFFFF;scrollbar-3dlight-color: #E4E9EA; scrollbar-darkshadow-color: #777777;scrollbar-track-color: #FcFcFc;scrollbar-arrow-color: #10173C; }

.new { font-size:7pt; color:#CD003C; font-family:Verdana; }
A:link { COLOR:#555555; TEXT-DECORATION: none;}
A:visited { COLOR:#555555; TEXT-DECORATION: none;}
A:hover { COLOR:#FF6600; TEXT-DECORATION: none;}
-->
</style>

<title>동영상보기</title>
</head>

<? echo "<script language='javascript' src='$g4[path]/js/sideview.js'></script>";?>

<BODY oncontextmenu="return false" ondragstart="return false" onselectstart="return false" bgcolor='#333333'>

<div style='width:100%;'>
<div style='text-align:center; margin:5px;'>
<? if ($view[wr_link1]) { echo $view[wr_link1]; } //--외부 html 태그방식 ?>
</div>
</div>

<table align='center' width='600' border="1" bordercolor="#cccccc" style="table-layout:fixed ; border-collapse:collapse" bgcolor="#FF3333">
<col width='80' />
<col width='' />
<tr height='24'>
<td bgcolor="#FF6666" align='center' style='padding:5px'><font color="white"><b>제 목</b></font></td>
<td bgcolor='#FFFFFF' style='padding:5px'>
<?=$view[subject]?> (조회 : <?=$view[wr_hit]?>)</td>
</tr>
<tr>
<td bgcolor="#FF6666" align='center' style='padding:5px'><font color="white"><b>내 용</b></font></td>
<td bgcolor='#FFFFFF' style='padding:5px'>
<?=$view[content];?>
</td>
</tr>
<tr height='24'>
<td bgcolor="#FF6666" align='center' style='padding:5px'><font color="white"><b>등 록</b></font></td>
<td bgcolor='#FFFFFF' style='padding:5px'>
<?=$mb_nick?> (<?=substr($view[wr_datetime],2,14)?>)</td>
</tr>
</table>

</body>
</html>
아무리 바꿔도 안되네요.ㅜㅜ
include_once("$g4_path/common.php");
=> include_once("$g4[path]/common.php");
위처럼 수정하시고

$g4_path = "../../..";

해결안되시면 패스 수정해보세요
그래도 안되네요.ㅜㅜㅜㅜㅜㅜㅜㅜㅜㅜㅜ
일단 인코딩부터 확인해보세요 한글이 깨져서 나오네요
인코딩은 제대로 되어있는데..ㅜㅜ 어디가 잘못된건지..모르겠어요..ㅜㅜ
include_once("$g4_path/common.php");
include_once("$g4_path/lib/latest.lib.php");
include_once("$g4_path/lib/common.lib.php");
include_once("$g4_path/head.sub.php");

상대경로를 이렇게 다 바꿔줘야 할것 같네요
그래도 안되네요.ㅜㅜㅜ
참고로 인코딩 두개 선언되어있습니다..
FF에서 확인중..
그럼 어떻게 알수 있나요.. 어떻게 바꾸어야 되나요.ㅜㅜ
/extend/gr_select_list.lib.php 파일의 4번째 줄 내용이 어떻게 되나요? 일단 그 줄을 주석처리 해보세요.
include_once("./_common.php"); 이거 써있어요
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
10-05-30 조회 2,136
10-05-30 조회 1,642
10-05-30 조회 1,632
10-05-30 조회 1,696
10-05-29 조회 1,684
10-05-29 조회 1,819
10-05-29 조회 1,648
10-05-29 조회 2,100
10-05-29 조회 2,436
10-05-29 조회 1,556
10-05-29 조회 1,647
10-05-29 조회 1,787
10-05-29 조회 2,083
10-05-29 조회 1,709
10-05-28 조회 1,685
10-05-28 조회 1,734
10-05-28 조회 1,651
10-05-28 조회 1,631
10-05-28 조회 1,520
10-05-28 조회 1,654