Re: Freeing the Result Pointer
| From: | php3 at developersdesk dot com | Date: | Sat, 16 Sep 2000 10:29:51 +0000 |
| Subject: | Re: Freeing the Result Pointer | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-2932@lists.php.net to get a copy of this message | ||
Addressed to: "Mark McCray" <mm@tbwachiat.com>
php-db@lists.php.net
** Reply to note from "Mark McCray" <mm@tbwachiat.com> Fri, 15 Sep 2000 13:33:59
-0400
>
> Is it always a good idea to do the mysql_free_result command after you do
> work in the db? is there anything I should be doing to close connections
> after I do work in the db from a web page? thanks, marky
No. If your script only does one thing and dies, there is no reason to free
the result, PHP will do it before it finishes.
If you are doing several different things that return result sets that you
no longer need as the script progresses, then you should free them as you
go. The bigger they are the more important it is to do so.
Rick Widmer
Internet Marketing Specialists
www.developersdesk.com