Re: Problems Uploading a File



On Wed, 12 Nov 2008 06:25:45 +0100, "J.O. Aho" <user@xxxxxxxxxxx>
wrote:

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

thank you for your advice.
unfortunately, my server doesn't allow an increase in memory since
it's a shared server.

i'll have to limit the uploads to about 2MB.

thank you again,
NN
.



Relevant Pages

  • Re: Problems Uploading a File
    ... get the following error message: ... Out of memory (tried to allocate ... it's a shared server. ... The problem you have has to do with the amount of RAM you allow PHP to use, ...
    (alt.php)
  • Re: Problems Uploading a File
    ... get the following error message: ... Out of memory (tried to allocate ... it's a shared server. ... The problem you have has to do with the amount of RAM you allow PHP to use, ...
    (alt.php)
  • 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: 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: sparse matrix - Out of memory
    ... Type HELP MEMORY for your options." ... But I do get that error message. ... Does this mean that Matlab cannot allocate enough memory ...
    (comp.soft-sys.matlab)