A
Anonymous
Guest
I have a PHP function which selects all rows of a table and all fields in the row for the purposes of totalling up all of their lengths. This is a web page and it spits out the total size of the table. The problem is if I refresh this page a couple of times while examining my systems memory usage it quickly increases until I'm out of memory.
I've ensured that I close the database after performing this totalling function and have even put in calls to mysqli_free_result but the behaviour persists - after about 5 refreshes and my system is out of memory. Why is this happening and how can I fix it?
Please let me know if you need any other info.
Thanks.
I've ensured that I close the database after performing this totalling function and have even put in calls to mysqli_free_result but the behaviour persists - after about 5 refreshes and my system is out of memory. Why is this happening and how can I fix it?
Please let me know if you need any other info.
Thanks.