You are here: Re: To Free mysqli result or not « PHP Programming Language « IT news, forums, messages
Re: To Free mysqli result or not

Posted by sai narasimha reddy on 11/12/07 14:44

On Nov 12, 9:19 am, mudge <mud...@gmail.com> wrote:
> In php documentation there is this note about mysqli_free_result():
>
> Note: You should always free your result with mysqli_free_result(),
> when your result object is not needed anymore.
>
> With the similar non-mysqli function there is this note:
>
> mysql_free_result() only needs to be called if you are concerned about
> how much memory is being used for queries that return large result
> sets. All associated result memory is automatically freed at the end
> of the script's execution.
>
> I'm just wondering why you need to free the result when using mysqli
> and not when you are using mysql_free_result().
>
> Does mysqli not automatically free resources when the php script
> execution finishes?

I think it does....when the execution of a page completes, all the
data members related to that page are freed.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация