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 move_uploaded_file($_FILES['imgfile1']['tmp_name'], $uploaddir.'/'.$_FILES['imgfile1']['name']); PHP: Thanks
Open php.ini in your Web server and try changing the line like "memory_limit = 16M" to the desired size...Try it and test it...
from the description of problem riamathews' solution should help. If not, please share exact error to give better idea of problem..
If you don't have php.ini access, then you can edit your .htaccess, which usually located in your root path (if you don't have one already create one) and place inside the following: php_value memory_limit 16M Code (markup): You can then change it accordingly to your needs.