어떤 오류인지 알수 있을까요???

Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 9152 bytes) in /home/hosting_users/mumuzone/www/skin/board/ssang_niwos/list.skin.php on line 109


109번라인 => $src = imagecreatefromjpeg($file);


// 썸네일 이미지가 존재하지 않는다면
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);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;

$rate = $img_width / $size[0];
$height = (int)($size[1] * $rate);

// 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
if ($height < $img_height)
// 계산된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $height);
else
// 설정된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $img_height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
// imagepng($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
//chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
|

댓글 1개

php.ini 에서 메모리사이즈를 높이세요.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
14년 전 조회 1,552
14년 전 조회 4,792
14년 전 조회 1,696
14년 전 조회 1,691
14년 전 조회 1,719
14년 전 조회 2,486
14년 전 조회 1,562
14년 전 조회 1,904
14년 전 조회 1,554
14년 전 조회 1,928
14년 전 조회 1,595
14년 전 조회 3,833
14년 전 조회 1,756
14년 전 조회 971
14년 전 조회 1,481
14년 전 조회 1,547
14년 전 조회 2,218
14년 전 조회 1,546
14년 전 조회 1,744
14년 전 조회 1,275