File Upload Problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

File Upload Problem

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: File Upload Problem

Post by requinix »

And how about the rest of the code?
Post Reply