Forum Moderators: coopster
ini_set('memory_limit', '32M');
but I am consistently throwing this error when I try to upload an image file which is 285K
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4800 bytes) in www\image_resize.php on line 24
here's line 24 -
$img_src=imagecreatefromjpeg($srcfile);
also, I have checked the php.ini file and the memory limit is set to 8M by default, which should still allow for my file to be uploaded even without the ini_set...any ideas?