imagedestroy problems with memory

From: Date: Sat, 15 May 2004 15:41:27 +0000
Subject: imagedestroy problems with memory
Groups: php.general 
Request: Send a blank email to php-general+get-186310@lists.php.net to get a copy of this message
Hi there, I am having trouble with ram memory. After about a day the system starts to swap. After doing a bit of research I found that a possible reason could be the missing of the imagedestroy() function. There is a question I have on that. Inside a function I add sometimes watermarks to images, than I return the image from the function. Where would I have to place the imagedestroy command? Inside the function, or after calling it? Here is part of the function code: ######################################### # save image to var to make saving possible in db into blob ob_start(); imagejpeg($photoImage); $photoImage = ob_get_contents(); ob_end_clean(); ######################################### return $photoImage; thankx for any help, Merlin

« previous php.general (#186310) next »