Would it be possible to restore my higher PHP memory limit?

Status
Not open for further replies.

DaveBC

New Member
Messages
13
Reaction score
0
Points
0
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
 

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
Moved to level two support
The ini_set function is disabled for security reasons.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Hi David,

Could you check the error log in cPanel and see what it says? Even though there are none on screen it should put them there.
 

DaveBC

New Member
Messages
13
Reaction score
0
Points
0
Hi Corey,

The error log has only two errors in it, which are:

[Thu Sep 11 15:05:32 2008] [error] [client 84.69.97.227] File does not exist: /home/dwmarrs/public_html/favicon.ico
[Thu Sep 11 15:05:30 2008] [error] [client 84.69.97.227] File does not exist: /home/dwmarrs/public_html/favicon.ico


Is that the result you were hoping for?



Christopher,

I thought it might be due to security reasons (otherwise I guess could just set memory limit to something ridiculously high and cause all sorts of problems, right?), just thought it was odd I wasn't gettting an error message when i used the function (as I did when I lost mail() function and tried to use it).

Thanks for the confirmation,

David
Edit:
By the way, just let me know if you think this whole thing is a stupid idea, because if it takes 48MB of PHP memory to create a zip containing 11.2MB worth of mp3s, and I want the user to be able to download a zip file containing 17.8MB worth of mp3s, as well as adding more mp3s to the site in future (and possibly increasing the bit rate (as currently they're all only 128kbps) and therefore filesize of the existing ones)...

Anyway, I managed to come up with a piece of JavaScript so that the user can only select 4 mp3s at a time, while this is sorted out. If you can give me any more memory so that they can do more at a time that would be great! It's just that if they've got JavaScript turned off, they get an ugly fatal error message if they ignore instructions and try to download too many in one go. So if anyone does know anything about error handling and can offer some advice, it'd be gratefully accepted...
 
Last edited:

tnl2k7

Banned
Messages
3,131
Reaction score
0
Points
0
This should be upgraded shortly, please bear with us while an administrator accepts it (this isn't checked often, people very rarely get this PHP version) ;).

-Luke.
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
I just approved the upgrade request, it should be upgraded within an hour.
 
Status
Not open for further replies.
Top