테스트 사이트 - 개발 중인 베타 버전입니다

갑자기 게시판에 오류메시지가 떴어요. 도와주세요

모과나무 9년 전 조회 2,613

안녕하세요 도와주세요. 다음과 같은 오류메시지가 떴어요.

메모리가 초과되었다는 것 같은데요

어떻게 하는지 꼭 좀 부탁드립니다

 

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 19284 bytes) in /home/hosting_users/skj9595/www/bbs/skin/board/free_image3/list.skin.php on line 87 

댓글을 작성하려면 로그인이 필요합니다.

답변 5개

해결했어요

 

정말 감사합니다 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

list.skin.php 의 제일 아래쪽에 가르쳐주신대루

 

ini_set('memory_limit','192M');  

 

를 추가했는데 오류메시지가 그대로 뜨는데요  도와주세요 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

즉, 제가 올린 두번째 글에

 

ini_set('memory_limit','192M');  

 

이것을 추가하면 되는 건가요 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

 

우선 답변 정말 감사드립니다

그페이지를 복사해왔어요

메모리 허용수치를 어떻게 늘리는 것인지요 부탁드립니다

 

include_once("$board_skin_path/skin.lib.php");

if (!$board[bo_1]) alert("°Ô½ÃÆÇ ¼³Á¤ : ¿©ºÐ Çʵå 1 ¿¡ ¸ñ·Ï¿¡¼­ º¸¿©Áú À̹ÌÁöÀÇ Æø(³ôÀÌ)À» ¼³Á¤ÇϽʽÿÀ. (Çȼ¿ ´ÜÀ§)"); if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 ÀÌ»ó ¹öÀüÀÌ ¼³Ä¡µÇ¾î ÀÖ¾î¾ß »ç¿ëÇÒ ¼ö ÀÖ´Â °¶·¯¸® °Ô½ÃÆÇ ÀÔ´Ï´Ù.");

if (!$board[bo_2]) {     $board[bo_2] = "130x70";     $sql = " update $g4[board_table] set bo_2 = '$board[bo_2]' where bo_table = '$bo_table' ";     sql_query($sql); }

list($img_width, $img_height) = explode("x", $board[bo_1]); list($img2_width, $img2_height) = explode("x", $board[bo_2]);

$data_path = $g4[path]."/data/file/$bo_table"; $thumb_path = $data_path.'/thumb';

@mkdir($thumb_path, 0707); @chmod($thumb_path, 0707);

$mod = $board[bo_gallery_cols]; $td_width = (int)(100 / $mod);

// ¼±ÅÿɼÇÀ¸·Î ÀÎÇØ ¼¿ÇÕÄ¡±â°¡ °¡º¯ÀûÀ¸·Î º¯ÇÔ $colspan = 5; if ($is_category) $colspan++; if ($is_checkbox) $colspan++; if ($is_good) $colspan++; if ($is_nogood) $colspan++;

// Á¦¸ñÀÌ µÎÁٷΠǥ½ÃµÇ´Â °æ¿ì ÀÌ Äڵ带 »ç¿ëÇØ º¸¼¼¿ä. // Á¦¸ñ ?>

           
    Ãßõ¼ø     |     Á¶È¸¼ø     |     ÄÚ¸àÆ®¼ø                 °Ô½Ã¹° °Ç                

";

    $img = "";     $thumb = $thumb_path.'/'.$list[$i][wr_id];     $file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];     $exif = @exif_read_data($file);     if (!file_exists($thumb)) {         if (preg_match("/\.(jpg|gif|png)$/i", $file) && file_exists($file)) {             $thumb_file = "{$thumb_path}/{$list[$i][wr_id]}";             $size = @getimagesize($file);             if ($size[2] == 1)                 $src = imagecreatefromgif($file);             else if ($size[2] == 2)                 $src = imagecreatefromjpeg($file);             else if ($size[2] == 3)                 $src = imagecreatefrompng($file);             else                 continue; if ($size[0] > $size[1]) {  if($size[0] < $img2_width){            $img_width2 = $size[0];        $img_height2 = $size[1];      }else{       $rate2 = $img2_width / $size[0];       $height2 = (int)($size[1] * $rate2);       $img_width2 = $img2_width;        $img_height2 = $height2;      }

                if($size[0] < $board[bo_1]) {                     $img_width = $size[0];                     $img_height = $size[1];                      } else {                     $rate = $board[bo_1] / $size[0];                           $height = (int)($size[1] * $rate);      

                    $img_width = $board[bo_1];                     $img_height = $height;                       }             } else {     if($size[1] < $img2_width) {                     $img_width = $size[0];                     $img_height = $size[1];                 } else {                     $rate2 = $img2_height / $size[1];                     $width2 = (int)($size[0] * $rate2);                     $img_width2 = $width2;                     $img_height2 = $img2_height;                 }                 if($size[1] < $board[bo_1]) {                     $img_width = $size[0];                     $img_height = $size[1];                 } else {                     $rate = $board[bo_1] / $size[1];                     $width = (int)($size[0] * $rate);                     $img_width = $width;                     $img_height = $board[bo_1];                 }             }             createThumb2($img_width, $img_height, $file, $thumb, $list[$i][mb_id]);                         $thumb_file = "{$thumb_path}/{$list[$i][wr_id]}_{$img2_width}x{$img2_height}";             createThumb($img_width2, $img_height2, $file, $thumb_file);

            $sql = " update $write_table set wr_10 = '$exif[Model]' where wr_id = '{$list[$i][wr_id]}' ";             sql_query($sql);         }     }

    $thumb_file = "{$thumb_path}/{$list[$i][wr_id]}_{$img2_width}x{$img2_height}";     if (file_exists($thumb_file)) {         $size = getimagesize($thumb_file);         $img = "

";     }

    $style = "";     //if ($list[$i][icon_new]) $style = " style='font-weight:bold;' ";     //$subject = "".cut_str($list[$i][subject],20)."";     $subject = "{$list[$i][subject]}";

    $comment_cnt = "";     if ($list[$i][comment_cnt])         $comment_cnt = " {$list[$i][comment_cnt]}";

    $list[$i][name] = preg_replace("/

    //echo "

\n"; }

// ³ª¸ÓÁö td $cnt = $i%$mod; if ($cnt)     for ($i=$cnt; $i<$mod; $i++)         echo "

"; ?>

"; } ?>
";     echo "";     echo "";     echo "";     echo "";     echo "";     //if ($is_category) echo "";     //echo "";     //echo "";     if ($is_checkbox) echo "";     echo "";     echo "
$img
";     echo "";     echo "$subject{$comment_cnt}";   echo "{$list[$i][wr_name]}";     //echo "";     //echo "";     //echo "$exif[Model]";     //echo " ÃÔ¿µ : $exif[DateTimeOriginal]";     //echo " Á¶È¸ ({$list[$i][wr_hit]}) / Ãßõ ({$list[$i][wr_good]})";     //echo "";     echo "
".$cls." {$list[$i][name]}
{$list[$i][name]}
 
height=1 bgcolor=#E7E7E7>
°Ô½Ã¹°ÀÌ ¾ø½À´Ï´Ù.
bgcolor=#5C86AD height=1>

   
        "; } ?>         ", $write_pages);         $write_pages = str_replace("ÀÌÀü", "", $write_pages);         $write_pages = str_replace("´ÙÀ½", "", $write_pages);         $write_pages = str_replace("¸Ç³¡", "", $write_pages);         $write_pages = preg_replace("/([0-9]*)<\/span>/", "$1", $write_pages);         $write_pages = preg_replace("/([0-9]*)<\/b>/", "$1", $write_pages);         ?>                 "; } ?>    

       
                                                                                  and         or        

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

SLOOP
9년 전

보통 64메가면 리스트 불러오는부분에 충분하다고 생각하는데

 

프로그램에 문제가 있는건 아닌지 살펴볼필요가 있습니다.

 

물리적인 해결방법은 메모리 허용 수치를 늘려주시는겁니다. 

 

호스팅이라면 지원하지 않을수있습니다.

 

http://zetawiki.com/wiki/PHP_%EB%A9%94%EB%AA%A8%EB%A6%AC_%EB%B6%80%EC%A1%B1">http://zetawiki.com/wiki/PHP_%EB%A9%94%EB%AA%A8%EB%A6%AC_%EB%B6%80%EC%A1%B1 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인