| re: when to use mysql_close and unset()
ahevans wrote:[color=blue]
> "Chung Leong" <chernyshevsky@hotmail.com> wrote in message news:<gKKdnX7sDIFJqYXfRVn-2A@comcast.com>...
>[color=green]
>>"ahevans" <ahevans@gmail.com> wrote in message
>>news:d589c3f.0502190717.69ea1823@posting.google. com...
>>[color=darkred]
>>>Now I guess it's good practice to unset created variables within each
>>>if or else section as a) it's less work and b) secure (correct me if
>>>I'm wrong).[/color]
>>
>>Never heard of that one, although I can see how some people would do it to
>>simulate the scoping rule in C++.[/color]
>
>
> Is it common practice to unset all variables or are they unset when a
> browser leaves a page?[/color]
In PHP, everything ends when the script has completed. So by the time
the page has finished rendering in the user's browser, all variables are
already unset. (Apart from session variables which may have been saved
in a file on the server somewhere.)
JP
--
Sorry, <devnull@cauce.org> is a spam trap.
Real e-mail address unavailable. 5000+ spams per month. |