Log in

View Full Version : some coding questions, need exp from coders.


deathemperor
12-28-2004, 02:05 PM
I'm trying to make a hack, when I post a thing in that hack, this is show up.

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 129 bytes) in /usr/local/test/functions_watever.php on line 467

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes) in Unknown on line 0

Someone know what is this problem ?

Thanks in advance

AlexanderT
12-28-2004, 02:54 PM
Perhaps you are using too many variables, or too many deep arrays, or some mysql data, or trying to load some big file into php's memory space... perhaps it is also just that you forget to properly clean unused variables and arrays again...

Use unset to remove unneeded variables and arrays from memory, and $DB_site->free_result to clean unneeded mysql resources.

deathemperor
12-29-2004, 02:34 AM
thanks, I've just figured out myself after posting this, lol

that was because I run my function with a null varible so it don't know how to stop.