what is this error message

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amir
Forum Contributor
Posts: 287
Joined: Sat Oct 07, 2006 4:28 pm

what is this error message

Post by amir »

Hello,

I am running Tucows CCS PHP scripts on my server and it is not working. Whenever I try to perfrom any action e.g. new domain registration, it takes me to page where I see blank page ( All White ). I checked the error logs and came to know that its giving this message
" Allowed memory size of 8388608 bytes exhausted (tried to allocate 128 bytes) ".

Can any body tell what is this and how to make it correct?

TIA!
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: what is this error message

Post by Chris Corbyn »

amir wrote:Hello,

I am running Tucows CCS PHP scripts on my server and it is not working. Whenever I try to perfrom any action e.g. new domain registration, it takes me to page where I see blank page ( All White ). I checked the error logs and came to know that its giving this message
" Allowed memory size of 8388608 bytes exhausted (tried to allocate 128 bytes) ".

Can any body tell what is this and how to make it correct?

TIA!
It means PHP is running out of memory (8MB). Do you have a recursive function in this script?

Post the code.
amir
Forum Contributor
Posts: 287
Joined: Sat Oct 07, 2006 4:28 pm

Post by amir »

I am sorry this code is encrypted ( i.e. TuCows CCS for Domain Management ) so I am not able to show it to you. I think this code should be optimized as written by a well known company. Please advise!

Thanks.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

amir wrote:I am sorry this code is encrypted ( i.e. TuCows CCS for Domain Management ) so I am not able to show it to you. I think this code should be optimized as written by a well known company. Please advise!

Thanks.
No, I mean your code. I'm guessing you've written some code in order to use this? If it's a script for download I doubt it would have such a major flaw as to overflow on memory usage. If it does I wouldn't use it but if you still want to use it trying increasing the max_memory_limit value in php.ini.

PHP 5.2.0 seem to have raised the default memory limit to 16MB anyway :)
amir
Forum Contributor
Posts: 287
Joined: Sat Oct 07, 2006 4:28 pm

Post by amir »

Thanks,

Now I have idea what is this and how to resolve it. Very truely you guys are so helping God bless you all.

BTW I am using PHP 5.1.6.

Thanks once again,
Post Reply