Re: Problems Uploading a File



NN wrote:
I have a script that uploads a JPG and then resizes it. it works fine
with files up to abouot 1.6M, but when i try a file that is about 4M i
get the following error message:

Fatal error: Out of memory (allocated 33292288) (tried to allocate
15552 bytes) in path-to/includes/file-upload-resize.inc.php on line 83

looking at the php.ini of my hosting service i gatherer the following:
memory_limit 40M 40M

You need to increase the amount allowed memory used,

memory_limit = 128M


--

//Aho
.



Relevant Pages

  • RE: [PHP] Why do i get this error message?
    ... It also means it tried to allocate 2KB of memory, ... [PHP] Why do i get this error message? ...
    (php.general)
  • Re: [PHP] Why do i get this error message?
    ... IIS and PHP 5.1.2: ... Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to ... allocate 24576 bytes) in ... ...
    (php.general)
  • Re: Strange Out of memory error.
    ... the error message is exactly correct: ... allocate too much memory. ... total requirements for your program when you try to allocate all of that ... cost of not having any memory left for other things. ...
    (comp.lang.basic.powerbasic)
  • Re: Problems Uploading a File
    ... get the following error message: ... Out of memory (allocated 33292288) (tried to allocate ... it's a shared server. ...
    (alt.php)
  • Re: Dynamic Array
    ... "Fatal error: Out of memory!\n"); exit;} ... That is, assuming no memory has been allocated for 'a' yet, how can someone write code that will try to allocate some memory, such that if not enough memory is available, then the program will exit and display an "Out of memory" error message. ... if my original message somehow wasn't clear on that point. ...
    (comp.lang.c)