Re: use of mysql_free_result and unset

From: Date: Sun, 09 Sep 2001 00:43:02 +0000
Subject: Re: use of mysql_free_result and unset
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66556@lists.php.net to get a copy of this message
It's done at the end of a function, or at any other time, when the variable is no longer in scope. You really only need this on a large, long-running script or where memory is an issue... For web-sites, that's quite rare. For a shell script, it might make sense. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Tobias Strauß <tobiasstrauss@ngi.de> Newsgroups: php.general To: <php-general@lists.php.net> Sent: Friday, September 07, 2001 3:54 AM Subject: use of mysql_free_result and unset > When do I have to use mysql_free_result($res). Is it good to use it with > every query or only if the result is very big (what's the size of the result > I shoud use mysql_free_result?). > What's about the use of unset($var). Is this good to save RAM to make my > script run faster? > Do I have to do this also when I'm at the end of a function or is it > automatically done by leaving this function if it's not set global? > >

« previous php.general (#66556) next »