networkthis Posted June 23, 2008 Share Posted June 23, 2008 I have created a function that allows me to take multiple files based on the files the user has selected in a checkbox. Everytime we try to download a file over 2 MB there is a memory error. Is there any way to get past the 2 MB limit? It works great with tons and tons of files as long as they are all under 2MB a piece. After googling the issue I have read that this seems to be a major problem with placing files over 2MB in limit into memory. Does anyone have any ideas of how to get around an issue such as this. I have tried several zip classes and they all have the same problem. Is it possible to maybe split files over 2MB in size. Link to comment https://forums.phpfreaks.com/topic/111436-solved-zip-files-2-mb-limit/ Share on other sites More sharing options...
Stooney Posted June 23, 2008 Share Posted June 23, 2008 As long as your host allows you to increase the memory limit there shouldn't be any big problems. ini_set("memory_limit", "50M"); Just increase it to what you need. Link to comment https://forums.phpfreaks.com/topic/111436-solved-zip-files-2-mb-limit/#findComment-572012 Share on other sites More sharing options...
networkthis Posted June 23, 2008 Author Share Posted June 23, 2008 Thank you so much..... I swear I thought I was going crazy!!! I wasted probably an hour trying to figure that out. ??? Link to comment https://forums.phpfreaks.com/topic/111436-solved-zip-files-2-mb-limit/#findComment-572023 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.