|
 Erwin van Brink - 2011-07-05 15:03:13
Hi,
Great script.
However, is it possible that it can handle large files ?
I've implemented it into my upload script, and let your script run for making a thumb of the uploaded files. If an upload file is large, i get an error message :
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 13056 bytes)
The image I was uploading causing this error message was 2,8 mb and the dimensions of this photo are 3264 x 2448.
Can you please help me with this problem ?
Thanks !
Erwin
 the real rory - 2011-07-06 23:17:34 - In reply to message 1 from Erwin van Brink
Hi
There is a great resource for explaining this type of issue - its at google.com
Enter that URL and you will see a box. Type in "fatal error allowed memory size of bytes exhausted tried to allocate bytes in" and you will be presented with over 1,700,000 results. Any of these will answer your question.
In a nutshell - you have run out of memory, either buy a bigger computer, or use a smaller image.
 Roman Krivosheev - 2011-07-08 21:02:34 - In reply to message 1 from Erwin van Brink
Hello.
php configuration is established at the very low value of memory_limit = <8M
Make a note of .htaccess
php_value memory_limit 32M
either in the php script
<?php
ini_set ('memory_limit', '32M');
include 'includes/Thumbnail.php';
...
|