Freeing memory WAS emalloc() error being thrown {LONG} - MORE
| From: | Jay Blanchard | Date: | Tue, 24 Jun 2003 17:55:31 +0000 |
| Subject: | Freeing memory WAS emalloc() error being thrown {LONG} - MORE | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152642@lists.php.net to get a copy of this message | ||
***pulling out what's left of my hair***
I have a situation where I open a new file, do a query, write to the
file, close the file, and then start over again at opening a new file
while looping through an array. As I do this I can watch memory
resources approach 0, ultimately failing the script before it gets
through the entore array. How do you free the memory after you close a
file without stopping the script? If I stop the script the memeory is
instantly freed up. I found the MySQL answers (mysql_free_result()), but
I also need to free memory after fclose(). Any ideas?
Thanks!
Jay