Re: memory error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bruno Santos wrote:
Hello. I've developed a script to use in shell to resize several images, but, when i try to run it, i keep receiving this error:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2048 bytes)

how can i solve it ?

PHP: 5.0.3

php.ini settings:
max_execution_time = 300
max_input_time = 60
memory_limit = 8M

by the way, is there any function that allows me to flush the memory ??

Are you using imagedestroy() after you create each image? You can also use unset() for variables you don't need.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux