Thread: upload problem
View Single Post
  #4  
Old 20th August 2008, 19:36
Neptune
Guest
 
Posts: n/a
Default
This error message can spring up in a previously functional PHP script when the memory requirements exceed the default 8MB limit. Don't fret, though, because this is an easy problem to overcome.

To change the memory limit for one specific script by including a line such as this at the top of the script:

Code:
ini_set("memory_limit","32M");

The 32M sets the limit to 32 megabytes (33554432 bytes). If this doesn't work, keep increasing the memory limit until your script fits or your server squeals for mercy.
Reply With Quote