cPanel user name: dwmarrs
subdomain/domain: marrs.x10hosting.com
hosting package: Ad-free
Re-posted from http://forums.x10hosting.com/upgrad...0622-please-increase-my-php-memory-limit.html (if this is still in the wrong thread, my apologies; help wasn't exactly forthcoming with where to re-post it) :
Hi,
I have a problem with a site I'm building that creates on the fly zip files which contain mp3s of my band. Please see this thread here: PHP memory limit problem when creating zip file on fly?
I think the problem was fixed by increasing my php memory limit, but when that was done I lost the mail() function. So I requested and received an upgrade to intermediate PHP to get mail() back, but I guess that reset the memory limit to a default, lower one. So can it be increased again please?
Also, looking into this again today, I get the impression that I should be able to use the function ini_set("memory_limit", "64M"); to sort this out. But it doesn't seem to work. I don't get an error message about it, it just doesn't work.
And I tried adding some error handling as well (so that users got a message explaining that it would work if they selected less mp3s at a time), but it wouldn't do anything either. Do you think that's because it's a fatal error? I guess that's the problem with using someone else's class because you don't understand how to do it yourself: makes it difficult to start adding stuff like exception handling to it!
Thanks very much,
David
subdomain/domain: marrs.x10hosting.com
hosting package: Ad-free
Re-posted from http://forums.x10hosting.com/upgrad...0622-please-increase-my-php-memory-limit.html (if this is still in the wrong thread, my apologies; help wasn't exactly forthcoming with where to re-post it) :
Hi,
I have a problem with a site I'm building that creates on the fly zip files which contain mp3s of my band. Please see this thread here: PHP memory limit problem when creating zip file on fly?
I think the problem was fixed by increasing my php memory limit, but when that was done I lost the mail() function. So I requested and received an upgrade to intermediate PHP to get mail() back, but I guess that reset the memory limit to a default, lower one. So can it be increased again please?
Also, looking into this again today, I get the impression that I should be able to use the function ini_set("memory_limit", "64M"); to sort this out. But it doesn't seem to work. I don't get an error message about it, it just doesn't work.
And I tried adding some error handling as well (so that users got a message explaining that it would work if they selected less mp3s at a time), but it wouldn't do anything either. Do you think that's because it's a fatal error? I guess that's the problem with using someone else's class because you don't understand how to do it yourself: makes it difficult to start adding stuff like exception handling to it!
Thanks very much,
David