thanks NogDog and dcalisaya for your fast reply!
I already tried increasing that value via
ini_set('memory_limit', '80MB');
and it did not work.
BTW, I took a look at the phpinfo() and found out that "megabytes" is briefly written with a "M" not "MB".
As I just tried to put
ini_set('memory_limit', '80M');
I got the script working with a quite small JPG file (around 1M😎!
Got the same error with a 2MB file, so at the moment I'll try to increase that value to 250M and see what happens.
By the way, I was also trying the
.htaccess with: php_value memory_limit 128M
solution but.. as I never did it, I don't know how to do it.
Is it enough to create an empty txt file, write that string down, and save it as
.htaccess
without name? On my windows system you can't assing the extension only.. how should I do it, dcalisaya?
(update: no way of creating/editing that file. My hosting provider says they don't allow it)
Thanks a lot guys.. 😉
small update to my POST:
I found this interesting article:
Bug #33595 recursive references leak memory
http bugs php net bug.php?id=33595
The cropcanvas script, as I understood, initialises a new Obj everytime it runs the PHP page (i.e. test.php in my example script I provided to you before) at
$ci =& new CropInterface(true);
.. I imagine that this might be a problem in increasing the used memory by the script? maybe I should destroy all the obj before run the script (and therefore, clean up the memory)... what do you think? 😕