2차 도메인에서 보드 설치 후 경로가.. 정보
2차 도메인에서 보드 설치 후 경로가..첨부파일
본문
안냐세요.~
고수님들께 여쭤볼게 있습니다..
저희 교회에서 2차 도메인을 쓰고 있는데요..
보드 설치하고 basic 게시판까지는 잘 됩니다.
갤러리 게시판을 설치하니 오류 메시지가 나오더군요.
몇몇의 갤러리 게시판을 설치해도 똑같은 위치에서 오류가 나옵니다.
제 생각엔 2차 도메인 경로 문제 같은데요..
경로를 약간 수정하니 no img 그림은 나오더군요..
혼자 몇시간째 쌩쇼를 하다가 이렇게 할 수 없이 글을 올립니다.
이렇게 나옵니다.
Fatal error: Call to undefined function: imagecreatefromgif() in /home/school/html/bbs/skin/board/photo_01/list.skin.php on line 88
열어보면..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!$board[bo_1]) alert("게시판 설정 : 여분 필드 1 에 목록에서 보여질 이미지의 가로사이즈를 설정하십시오. (예)120)");
if (!$board[bo_2]) alert("게시판 설정 : 여분 필드 2 에 목록에서 보여질 이미지의 세로사이즈를 비율로 설정하십시오. (예)150)");
if (!$board[bo_9]) alert("게시판 설정 : 여분 필드 9 에 목록에서 보여질 이미지의 질(quality)을 비율로 설정하십시오. (100 이하)");
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");
if (!$board[bo_2]) alert("게시판 설정 : 여분 필드 2 에 목록에서 보여질 이미지의 세로사이즈를 비율로 설정하십시오. (예)150)");
if (!$board[bo_9]) alert("게시판 설정 : 여분 필드 9 에 목록에서 보여질 이미지의 질(quality)을 비율로 설정하십시오. (100 이하)");
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
$thumb_path = $data_path.'/thumb';
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
@chmod($thumb_path, 0707);
$mod = $board[bo_gallery_cols];
$td_width = (int)(100 / $mod);
$td_width = (int)(100 / $mod);
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 5;
if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
$colspan = 5;
if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<link rel='stylesheet' type='text/css' href='<?=$board_skin_path?>/ms1021style.css'>
<!-- 게시판 목록 시작 -->
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0 border=0><tr><td valign="top">
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0 border=0><tr><td valign="top">
<? if ($is_category) { ?>
<!-- 분류 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<?
$cnt_bo_1 = $bo_1[0] ? $bo_1[0] : 10; // 한줄당 분류 갯수(현재:10)
$cnt = 1;
$cnt0 = 0;
$bb_s=""; $bb_e="";
$b_s=""; $b_e="";
$arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
$str = " |";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i])) {
if ($sca == $arr[$i]) { $cnt0++; $b_s="<b>"; $b_e="</b>"; } else {$b_s=""; $b_e="";}
$str .= " <a href='./board.php?bo_table=$bo_table&sca=".($arr[$i])."'><span class=L_Tcategory>$b_s$arr[$i]$b_e</span></a> <span class=L_line>|</span>";
if ($cnt == $cnt_bo_1) { $cnt = 0; $str .= "<br>"; }
$cnt++;
}
if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
?>
<?echo " <span class=L_line>|</span> ";echo $bb_s;?><a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'><span class=L_Tcategory>전체</span></a><?=$bb_e?>
<span class=L_line><?=$str?></span>
</td>
</tr>
<tr><td height=10></td></tr>
</table>
<? } ?>
<!-- 분류 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<?
$cnt_bo_1 = $bo_1[0] ? $bo_1[0] : 10; // 한줄당 분류 갯수(현재:10)
$cnt = 1;
$cnt0 = 0;
$bb_s=""; $bb_e="";
$b_s=""; $b_e="";
$arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
$str = " |";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i])) {
if ($sca == $arr[$i]) { $cnt0++; $b_s="<b>"; $b_e="</b>"; } else {$b_s=""; $b_e="";}
$str .= " <a href='./board.php?bo_table=$bo_table&sca=".($arr[$i])."'><span class=L_Tcategory>$b_s$arr[$i]$b_e</span></a> <span class=L_line>|</span>";
if ($cnt == $cnt_bo_1) { $cnt = 0; $str .= "<br>"; }
$cnt++;
}
if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
?>
<?echo " <span class=L_line>|</span> ";echo $bb_s;?><a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'><span class=L_Tcategory>전체</span></a><?=$bb_e?>
<span class=L_line><?=$str?></span>
</td>
</tr>
<tr><td height=10></td></tr>
</table>
<? } ?>
<form name="fboardlist" method="post" style="margin:0px;">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i && $i%$mod==0)
echo "</tr><tr>";
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i && $i%$mod==0)
echo "</tr><tr>";
$img = "<img src='$board_skin_path/img/no_img.gif' border=0 width='$board[bo_1]' title='이미지 없음'>";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
if (!file_exists($thumb))
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
{
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file); //이부분이 88 줄입니다.
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
continue;
$thumb = $thumb_path.'/'.$list[$i][wr_id];
if (!file_exists($thumb))
{
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
{
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file); //이부분이 88 줄입니다.
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
continue;
$rate = $board[bo_1] / $size[0];
$height = (int)($size[1] * $rate);
$height = (int)($size[1] * $rate);
if ($height < $board[bo_2])
$dst = imagecreatetruecolor($board[bo_1], $height);
else
$dst = imagecreatetruecolor($board[bo_1], $board[bo_2]);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $board[bo_1], $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $board[bo_9]);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
$dst = imagecreatetruecolor($board[bo_1], $height);
else
$dst = imagecreatetruecolor($board[bo_1], $board[bo_2]);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $board[bo_1], $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $board[bo_9]);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
if (file_exists($thumb))
$img = "<img src='$thumb' border=0>";
$img = "<img src='$thumb' border=0>";
$style = "";
if ($list[$i][icon_new])
$style = ""; // 읽지 않은 글?? style='font-weight:bold;' 추가
$subject = "<span $style>". $list[$i][subject] ."</span>";
if ($list[$i][icon_new])
$style = ""; // 읽지 않은 글?? style='font-weight:bold;' 추가
$subject = "<span $style>". $list[$i][subject] ."</span>";
$comment_cnt = "";
if ($list[$i][comment_cnt])
$comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span class='L_comment_cnt'>{$list[$i][comment_cnt]}</span></a>";
if ($list[$i][comment_cnt])
$comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span class='L_comment_cnt'>{$list[$i][comment_cnt]}</span></a>";
echo "<td width='{$td_width}%' valign=top style='word-break:break-all;'>";
echo "<table cellpadding=0 cellspacing=0 border=0>";
echo "<tr><td align=center width='{$board[bo_1]}' height='{$board[bo_2]}' style='width:{$board[bo_1]}px; height:{$board[bo_2]}px; border:1px solid #CCCCCC; padding:3px'><div style='width:{$board[bo_1]}px; height:{$board[bo_2]}px; position: relative; overflow:hidden;' align=center><a href='{$list[$i][href]}' onfocus='this.blur()'>$img</a></div></td></tr>";
echo "<tr><td width={$board[bo_1]} height=22 align=center><a href='{$list[$i][href]}'><span class=L_subject>$subject</span></a>{$comment_cnt}</td></tr>";
if ($is_category) echo "<tr><td align=center><a href='{$list[$i][ca_name_href]}'><span class=L_category>{$list[$i][ca_name]}</span></a></td></tr>";
if ($is_checkbox) echo "<tr><td align=center><input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'></td></tr>";
echo "<tr><td height=5></td></tr>";
echo "</table></td>\n";
}
echo "<table cellpadding=0 cellspacing=0 border=0>";
echo "<tr><td align=center width='{$board[bo_1]}' height='{$board[bo_2]}' style='width:{$board[bo_1]}px; height:{$board[bo_2]}px; border:1px solid #CCCCCC; padding:3px'><div style='width:{$board[bo_1]}px; height:{$board[bo_2]}px; position: relative; overflow:hidden;' align=center><a href='{$list[$i][href]}' onfocus='this.blur()'>$img</a></div></td></tr>";
echo "<tr><td width={$board[bo_1]} height=22 align=center><a href='{$list[$i][href]}'><span class=L_subject>$subject</span></a>{$comment_cnt}</td></tr>";
if ($is_category) echo "<tr><td align=center><a href='{$list[$i][ca_name_href]}'><span class=L_category>{$list[$i][ca_name]}</span></a></td></tr>";
if ($is_checkbox) echo "<tr><td align=center><input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'></td></tr>";
echo "<tr><td height=5></td></tr>";
echo "</table></td>\n";
}
// 나머지 td
$cnt = $i%$mod;
if ($cnt)
for ($i=$cnt; $i<$mod; $i++)
echo "<td width='{$td_width}%'> </td>";
?>
</tr>
$cnt = $i%$mod;
if ($cnt)
for ($i=$cnt; $i<$mod; $i++)
echo "<td width='{$td_width}%'> </td>";
?>
</tr>
<? if (count($list) == 0) { echo "<tr><td colspan='$mod' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</table>
</form>
</table>
</form>
--이하생략--
저희 교회 선교지 홈페이지 올해까지 만들어야 하는데..
초보인지라..염치없이 부탁드리네요.
꼭 좀 부탁합니다. 알려 주시는 분께는 부산오시면 밥한끼 쏩니다..^^
샬롬~
댓글 전체
스킨문제나 서브도메인 문제보다 서버환경의 문제인듯 합니다.
정확한 답변이 될런지 모르겠지만 서버환경을 보니
갤러리 게시판에서 썸네일이미지 생성시 GD버전이 호환이 안되는듯 하네요.
http://immanuel.or.kr/phpinfo.php
정확한 답변이 될런지 모르겠지만 서버환경을 보니
갤러리 게시판에서 썸네일이미지 생성시 GD버전이 호환이 안되는듯 하네요.
http://immanuel.or.kr/phpinfo.php
http://immanuel.or.kr/phpinfo.php
이건 어떻게 알아 내셨나요? ^^
이건 어떻게 알아 내셨나요? ^^
경험에 의한 무작위 대입신공^^;흐
gif가 특허 때문에 PHP에서 빠져버린 적이 있습니다.
언제부터인지 슬그머니인지 다시 사용할 수 있게 되었는데
http://immanuel.or.kr/phpinfo.php
를 보니까 gif를 지원 안 하는 php로 구성되어 있네요.
php를 다시 컴파일 하셔야 할 듯합니다.
언제부터인지 슬그머니인지 다시 사용할 수 있게 되었는데
http://immanuel.or.kr/phpinfo.php
를 보니까 gif를 지원 안 하는 php로 구성되어 있네요.
php를 다시 컴파일 하셔야 할 듯합니다.
답변 주신분께 진심으로 감사드립니다.
엄..그러면 안되는건가요?
업체에 뭐라 말하면 되나요?
다시한번 부탁합니다.^^
엄..그러면 안되는건가요?
업체에 뭐라 말하면 되나요?
다시한번 부탁합니다.^^
gd 라이브러리에서 gif를 지원하게 해 달라고 하세요.
모두들 감사합니다.^^
부산 함 오세요..밥 함 쏠께요.^^
건강하세요.~
부산 함 오세요..밥 함 쏠께요.^^
건강하세요.~