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 [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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ß <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
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?
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to