Now I am receiving this error when attempting to upload a file which exceeds the memory limit:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 11232 bytes) in /home/celebrit/public_html/gallery/include/picmgmt.inc.php on line 261
So either another error has found its way to me which means I have 2 errors (this one and the one in my previous post) or perhaps just this one (doubtful). I have reviewed /home/celebrit/public_html/gallery/include/picmgmt.inc.php on line 261 and nowhere does it give me the option to simply increase a default value, say from 8mb to 32mb or whatever. Line 261 should be somewhere within the following code: case "gd1" :
if (!function_exists('imagecreatefromjpeg')) {
cpg_die(CRITICAL_ERROR, 'PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed', __FILE__, __LINE__);
}
if ($imginfo[2] == GIS_JPG)
$src_img = imagecreatefromjpeg($src_file);
else
$src_img = imagecreatefrompng($src_file);
if (!$src_img) {
$ERROR = $lang_errors['invalid_image'];
return false;
}
$dst_img = imagecreate($destWidth, $destHeight);
imagecopyresized($dst_img, $src_img, 0, 0, 0, 0, $destWidth, (int)$destHeight, $srcWidth, $srcHeight);
touch($dest_file);
$fh=fopen($dest_file,'w');
fclose($fh);
imagejpeg($dst_img, $dest_file, $CONFIG['jpeg_qual']);
imagedestroy($src_img);
imagedestroy($dst_img);
break;
No clue what to fix and I sure as hell do not see any numbers within the code to adjust. Any ideas?
In addition, I have also tried to create a text file of php.ini just simply: memory_limit = 32M -- This, however, has led to nothing, perhaps because I have no clue where to put the text doc. Any help here would also be appreciated.
Cheers and a hardy thanks to anyone willing to take a seat and help.