[UPHPU] next newb question (mysql_query)

dataw0lf digitalsuicide at gmail.com
Wed Jun 15 07:58:01 MDT 2005


Saint Chaos wrote:

> My understanding is that you would only need to do a mysql_free_result
> IF you are making a query that returns alot of data, and you need to
> free up memory before the script finishes executing.

Correct.  PHP Scripts do garbage collection at the end of the script.
mysql_free_result() is used to free up memory on the fly, in a long
script where memory is crucial.

> Of course, I could be wrong as I am no where near 'Guru' status yet. :)

Nope, you were right.

-- 

Joshua Simpson -- dataw0lf.org
Lead Network Administrator/Engineer Aero-Graphics Inc.
jsimpson at aero-graphics.com



More information about the UPHPU mailing list