I cant seem to figure this out. This is the error Im getting. Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 6800 bytes) in /home/hoot33/public_html/host/includes/core.func.php on line 485 This is the switch Line 485 is line saying Default: switch($image[type]) { case 1: $type = "gif"; if( function_exists("imagecreatefromgif") ) { $s_img = @imagecreatefromgif($filename); break; } case 2: $type = "jpg"; $s_img = imagecreatefromjpeg($filename); break; case 3: $type = "png"; $s_img = imagecreatefrompng($filename); break; default: //convert to new type file in temp dir! $old_type=strtolower(strrchr($filename,'.')); $tmp_filename = convertFiletype($filename,'.jpg'); $s_img = imagecreatefromjpeg($tmp_filename); $converted=1; } If anyone can help Id be very grateful
How big is the image? The problem is not in your switch. PHP is telling you that it's running out of memory. (Probably because of an over sized image.)
Check your phi.ini for the memory_limit setting, it may be too small. You are running out of memory at 4Mb at the moment.
heh heh - opps I mis-read that one Ignore my previous post - 41Mb should be enough! Do you get the same error for both gif and jpg images?
No, just jpg, png also works. The script seems to work if I upload a single file but as soon as I upload multiple I get the error (multiple being 9) http://papacelebs.com/host/index.php thats the site