Page 1 of 1

File Upload Problem

Posted: Wed Jan 20, 2010 2:37 am
by itsmani1
Hi

I am having problem in image uploading, I get memory exhausted errors. Is there anyway that play with memory. If i upload an image of like 2.5MB it works but if i try to upload same image i.e. 5 times in a row then i start get memory errors.

I think this could be solved by memory management, but i have no idea if there is a way of memory management in php.

Here is my code for uploading, I am also doing image resize using GD library

Code: Select all

move_uploaded_file($_FILES['imgfile1']['tmp_name'], $uploaddir.'/'.$_FILES['imgfile1']['name']);       
Thanks

Re: File Upload Problem

Posted: Wed Jan 20, 2010 5:31 am
by requinix
And how about the rest of the code?