갤러리 게시판 리스트 에서 오류메세지 답변부탁드립니다. > 그누4 질문답변

그누4 질문답변

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

갤러리 게시판 리스트 에서 오류메세지 답변부탁드립니다. 정보

갤러리 게시판 리스트 에서 오류메세지 답변부탁드립니다.

본문

Warning: getimagesize(): URL file-access is disabled in the server configuration in /home/user/cafeepm/public_html/skin/board/gallery2/list.skin.php on line 278

Warning: getimagesize(http://cafe.eppm.kr/data/geditor/0805/1030352193_c5fcd0b1_7232.gif): failed to open stream: no suitable wrapper could be found in /home/user/cafeepm/public_html/skin/board/gallery2/list.skin.php on line 278

Warning: Division by zero in /home/user/cafeepm/public_html/skin/board/gallery2/list.skin.php on line 280

Warning: getimagesize(): URL file-access is disabled in the server configuration in /home/user/cafeepm/public_html/skin/board/gallery2/list.skin.php on line 278

Warning: getimagesize(http://cafe.eppm.kr/data/geditor/0805/1030352193_7d90f45e_masimaro.jpg): failed to open stream: no suitable wrapper could be found in /home/user/cafeepm/public_html/skin/board/gallery2/list.skin.php on line 278

Warning: Division by zero in /home/user/cafeepm/public_html/skin/board/gallery2/list.skin.php on line 280
 
위와 같은 에러 메세지가 가끔씩 나오는데요 아래 리스트 파일 소스 입니다. 고수님들 조언좀 부탁드립니다.

<?
for ($i=0; $i<count($list); $i++)
{
    if ($i && $i%$mod==0)
    echo "</tr><tr><td colspan='{$mod}' height=20></td></tr><tr>";
    $img = "<img src='$board_skin_path/img/noimage.gif' border=0 title='이미지 없음'>";



$phone = $list[$i]['wr_content'];

if (eregi("<img [^<>]*>", $phone, $regs)) { // img src="images/xxx.gif" 까지 추출

    $tmp_str = $regs[0];
    eregi("[^= \"']*\.(gif|jpg|png|bmp)", $tmp_str, $regs1);  // images/xxx.gif 까지 추출
    $tmp1_str = $regs1[0];
    eregi("[^= '/]*\.(gif|jpg|png|bmp)", $tmp1_str, $regs2); // xxx.gif 까지 추출

    $filename = $regs2[0]; // 파일명

} else {

    $filename = "";

}

// 파일
if ($list[$i][file][0][file]) {

    // 썸네일
    $thumb = $thumb_path.'/'.$list[$i][file][0][file];

} else {

    // 썸네일
    $thumb = $thumb_path.'/'.$filename;

}

// 썸네일이 없다면
if (!file_exists($thumb)) {

    // 파일
    if ($list[$i][file][0][file]) {

        // 원본
        $thumb_file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];

    } else {

        // 날짜별 폴더 지정
        $thumb_date = date("Ym", strtotime($list[$i]['wr_datetime']));
        $date_url = substr($thumb_date,2,5);
        $data_path = "{$g4['path']}/data/cheditor/{$date_url}";

        // 원본
        $thumb_file = $data_path.'/'.$filename;

    }

    // 확장자 체크
    if (preg_match("/\.(jp[e]?g|gif|png)$/i", $thumb_file) && file_exists($thumb_file)) {

        createThumb($thumb_width, $thumb_height, $thumb_file, $thumb, true);

    }

}



  if (file_exists($thumb)) {

if (preg_match("/\.(jp[e]?g|gif|png)$/i", $thumb)){
$img = "<a href='{$list[$i][href]}' ><img src='{$thumb}' border=0 style='border:0px solid #999999;'></a>";
}


} else {
preg_match("`<\s*img\s+src\s*=\s*['|\"]?([^'|\"\s]+://[^'|\"\s]+\.(gif|jpe?g|png))['|\"]?\s*[^>]+`i", $list[$i]['wr_content'], $images);

if (!empty($images[1])) {



###########278번째라인입니다.        $img_size = GetImageSize("$images[1]");



###########279번째라인입니다.                        if($img_size[0] >= $img_size[1]) {



###########280번째라인입니다.     $imgper = $thumb_width/$img_size[0];



$thumb_height = $img_size[1]*$imgper;
}else{
$imgper = $thumb_height/$img_size[1];
$thumb_width = $img_size[0]*$imgper;
}

$img = "<a href='{$list[$i][href]}' ><img src='{$images[1]}' align='absmiddle' border='0'></a>";
} else {
$img = "<img src='$board_skin_path/img/noimage.gif' border=0 title='이미지 없음'>";
}
}

    $style = "";
    if ($list[$i][icon_new])
        $style = " style='font-weight:bold;' ";
    $subject = "<a href='{$list[$i][href]}' onfocus='this.blur()'><span $style>".cut_str($list[$i][subject],18)."</span></a>";

    $comment_cnt = "";
    if ($list[$i][comment_cnt])
        $comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;font-family:tahoma;color:#EE5A00; vertical-align:1px;'>{$list[$i][comment_cnt]}</span></a>";

    $bg = "";  //새글?
    if ($list[$i][icon_new])
        $bg="thumb_1_2.gif";
      else
        $bg="thumb_1.gif";

댓글 전체

Warning: getimagesize(): URL file-access is disabled in the server configuration

Warning: getimagesize(http://cafe.eppm.kr/data/geditor/0805/1030352193_c5fcd0b1_7232.gif):

getimagesize()에서 http로 시작하는 URL를 쓰는 것을
서버(아파치) 설정에서 막아 놓아다고 하네요.
여러 게시글 중에 간혹 게시글 한개가 위와 같은 오류로 메세지가 나오는데요  해결할 수 있는 방법이 없을까요?? 다른 이미지는 잘 나오던데 ....
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT