When trying to resize photographs I am getting the following error on my test server.
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 11520 bytes) in C:\wamp\www\phototest\reqfiles\submit_photo.req.php on line 70
here is my code from line 67 to 74
$src = ImageCreateFromJpeg($image);
$dst = ImageCreate($tn_width,$tn_height);
ImageCopyResized($dst, $src, 0, 0, 0, 0,
$tn_width,$tn_height,$width,$height);
header("Content-type: image/jpeg");
ImageJpeg($dst, null, -1);
ImageDestroy($src);
ImageDestroy($dst);
Can anyone help? is it a problem with my code or with my server?