애

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

· 2011-03-13 (일) 14:04:28 · 1984 · 1
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 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
11-03-14 조회 1,614
11-03-14 조회 1,651
11-03-14 조회 1,850
11-03-14 조회 1,603
11-03-14 조회 4,840
11-03-13 조회 1,753
11-03-13 조회 1,739
11-03-13 조회 1,781
11-03-13 조회 2,537
11-03-13 조회 1,609
11-03-13 조회 1,960
11-03-13 조회 1,602
11-03-13 조회 1,985
11-03-13 조회 1,650
11-03-13 조회 3,890
11-03-13 조회 1,810
11-03-13 조회 1,035
11-03-12 조회 1,540
11-03-12 조회 1,598
11-03-12 조회 2,274