Re: memory error

From: Date: Thu, 17 Feb 2005 21:14:38 +0000
Subject: Re: memory error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-208956@lists.php.net to get a copy of this message
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.

« previous php.general (#208956) next »