Mary Anderson wrote: > Thanks for responding. > > I hadn't realized memory_get_usage was available. That will be an > enormous help. > > And I wasn't too clear in my note. Actually, it did not surprise me > that the loop crashed the test code. I expected it to. What does > surprise me is that the test code works with one call to the data base, > but the same logic in the application crashes the system. <random guess> Maybe you're accidentally calling the same code multiple times? You can use xdebug to work out what code is called and where it's called from. See http://www.xdebug.org/ Extremely handy little tool that one :) -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php