Re: Problems Uploading a File
- From: NN <NoName@xxxxxxxx>
- Date: Wed, 12 Nov 2008 15:53:58 -0600
On Wed, 12 Nov 2008 18:05:19 +0100, "J.O. Aho" <user@xxxxxxxxxxx>
wrote:
NN wrote:
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 fineYou need to increase the amount allowed memory used,
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
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.
The problem you have has to do with the amount of RAM you allow PHP to use,
and it needs more to be able to use gd. This hs nothing to do with the amount
of disk space and according to what you wrote earlier you are assigning 40MB
at the moment. I hope it don't say what you wrote in your php.ini, as that
ain't a correct syntax.
the memory limit that i wrote above (memory_limit 40M) is what
i copied and pasted from the phpinfo().
i tried memory_limit = 128M on the php.ini, but the hosting company
somehow overrides it for users of shared servers.
it works just fine on my localhost since the memory_limit = 128M.
thanks,
NN
.
- References:
- Problems Uploading a File
- From: NN
- Re: Problems Uploading a File
- From: J.O. Aho
- Re: Problems Uploading a File
- From: NN
- Re: Problems Uploading a File
- From: J.O. Aho
- Problems Uploading a File
- Prev by Date: Re: Problems Uploading a File
- Next by Date: How to manage date fields in template
- Previous by thread: Re: Problems Uploading a File
- Next by thread: How to manage date fields in template
- Index(es):
Relevant Pages
|