Hi there,
I'm building a site for my band that lets people download mp3s of our songs if (and only if) they've signed up to our mailing list.
To download the mp3s, the user ticks check boxes in a form which is submitted to a PHP script that uses the class of someone brighter than me (the script that calls the class is a modified version of this) to generate a .zip file on the fly, containing the mp3s.
It works brilliantly so long as I only select a few mp3s at a time, but say i were to select all of them, the browser would display an error page with the message:
'Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 13475625 bytes) in /home/dwmarrs/public_html/theblitzcartel/createZip.php on line 110'
The total size of the mp3s is 17.8MB. Do you think this problem would sort itself out if i applied for intermediate or advanced PHP configuration, with their greater memory limits? Or am i going to have to come up with some javascript so that the user can only tick a few boxes at a time?
Any guidance that anyone can offer on this would be much appreciated.
Thanks very much,
David
I'm building a site for my band that lets people download mp3s of our songs if (and only if) they've signed up to our mailing list.
To download the mp3s, the user ticks check boxes in a form which is submitted to a PHP script that uses the class of someone brighter than me (the script that calls the class is a modified version of this) to generate a .zip file on the fly, containing the mp3s.
It works brilliantly so long as I only select a few mp3s at a time, but say i were to select all of them, the browser would display an error page with the message:
'Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 13475625 bytes) in /home/dwmarrs/public_html/theblitzcartel/createZip.php on line 110'
The total size of the mp3s is 17.8MB. Do you think this problem would sort itself out if i applied for intermediate or advanced PHP configuration, with their greater memory limits? Or am i going to have to come up with some javascript so that the user can only tick a few boxes at a time?
Any guidance that anyone can offer on this would be much appreciated.
Thanks very much,
David