I have an error message :
Fatal error: Allowed memory size of 10476776 bytes exhausted (tried to allocate 6400 bytes) in /var/www/html//skin/board/hn_vlche_gallery/list.skin.php on line 97
And the troublemsome codes are::
ini_set("memory_limit","24M");
for ($i=0; $i<count($list); $i++) {
$img = "<img src='$board_skin_path/img/noimage.gif' border=0 width='$board[bo_1]' >";
$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);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
$rate = $board[bo_1] / $size[0];
$height = (int)($size[1] * $rate);
$dst = imagecreatetruecolor($board[bo_1], $height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $board[bo_1], $height, $size[0], $size[1]);
imagepng($dst, $thumb_path.'/'.$list[$i][wr_id], $board[bo_2]);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
if (file_exists($thumb))
$img = "<img src='$thumb' width='$board[bo_1]' border=0>";
}
Are there possiblity on permission or ownership?