Posted by Colin McKinnon on 07/05/06 22:30
cmills28@yahoo.com wrote:
> I'm using php 4.3, and I"m wondering when is it a good idea to use this
> unset() function to free a variable?
It rather depends what for and where you're using it.
Assuming its for generating web pages, called as CGI, fast CGI or module,
then don't worry - the runtime memory gets blown away after servicing each
request.
IME PHP does a very good job of tracking what memory it has allocated - I've
run servers fielding millions of hits per day and only had to take them
down for patching.
C.
[Back to original message]
|