我明白了,谢谢if you want your script to work regardless of register_globals, you need to instead use the $_SESSION array as $_SESSION entries are automatically registered. If your script uses session_register(), it will not work in environments where the PHP directive register_globals is disabled.
难道使用$_SESSION['aa']="";就可以不注册而直接使用吗?
为什么呢?