how to prevent "memory exausted"

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

how can I prevent / catch the error / work around this error:
        "Fatal error: Allowed memory size of xxx bytes exhausted"

The script runs and stalls sometimes. Is there a way how I can prevent  


Re: how to prevent "memory exausted"

0000=year wrote:

Quoted text here. Click to load it

Hi Olaf,

That means PHP is out of memory.
You have several option now:
1) Make PHP use less memory by adjusting your script (if possible).
2) GIVE php more memory.

For 2), read on here:
and look for memory_limit

Erwin Moller

Site Timeline