Reply to Re: [PHP] memory error

Your name:

Reply:


Posted by Marek Kilimajer on 02/17/05 23:14

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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация