Re: PHP memory limit problem when creating zip file on fly?

Originally Posted by
willemvo
I have no idea!!
This is basicly spam...
Ontopic:
I'm not sure about the memory limits, but it might be a good idea to limit the amount of bytes the user can download. This does not require JavaScript, but it can be done serverside.
I'm thinking you can give a maximum of (for example) 10 mb limit, so you just process the list of selected files, each time checking the file size. If the size exceeds 10 mb, generate an error to make the user select fewer files, if the size is less than 10 mb, continue with the script.
Just a basic idea, but it might not be the best way to solve things.
Real programmers don't document their code - if it was hard to write, it should be hard to understand.