Why is ini_set ('memory_limit') not working?
I am doing a file resize function and when I use very high resolution images I get this fatal error:
PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
allocate 8884 bytes) in /path/resizer.php on line 35
(resizer.php is the resizer class) Then when I use ini_set ('memory_limit', '64MB'),
.. before the whole block: if (isset ($ _ FILES ....)) ... And I get this fatal error:
PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to
allocate 8884 bytes) in path/resizerenter code here.php on line 35
Note that the allocated memory decreased when I requested an increase. Please let me know if you know what is wrong. Many thanks
+3
source to share