|
Posted by thib΄ on 06/15/45 12:00
Kurda Yon wrote:
> But I am not sure that I correctly understand the suggested solution
> of the problem. I should replace all global variables which I care
> about by "normal variables"? I.e. $varname = global-array[$varname].
> Why I cannot use the global variables directly?
Yes, the subject has been discussed here recently. I'll past the classic
example for you to understand quickly:
...
if( isset($admin) ) {
..
}
...
Now: http://mysite.net/myscript.php?admin=1
Here we go.
Thus, globals aren't registered automatically anymore, you have to do it
yourself: $registered_global = $_SESSION['unregistered_global'];
-thibΒ΄
Navigation:
[Reply to this message]
|