Re: MYSQL/PHP what is the difference between unset() and mysql_free_result() ?

From: Date: Wed, 05 Sep 2001 21:46:26 +0000
Subject: Re: MYSQL/PHP what is the difference between unset() and mysql_free_result() ?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-12191@lists.php.net to get a copy of this message
Hello, > unset() simply deletes the pointer to the data without releasing the space > held by the data. > mysql_free_result() releases the data storage pointed-to by the $result > pointer. > This is important because $result could be pointing-to a dataspace > containing a large number or rows returned by the mysql_query(). You WANT > to recover this dataspace. Well, oke, tnx. But if unset() doesn't releas the data-space, what then is it's functionality? only voor tests like: if(isset($var)) ;? And how can i free the data-space from a string or somting like that? b.e. $string="a very long string"; free($string);#????????? #could i use mysql_free_result($string); Tnx, Bas

« previous php.db (#12191) next »