我在php.ini中找到了以下代码.这意味着什么?
和“PHP注册” – 这是什么?
; This directive describes the order in which PHP registers GET,POST,Cookie,; Environment and Built-in variables (G,P,C,E & S respectively,often
; referred to as EGPCS or GPC). Registration is done from left to right,newer
; values override older values.
variables_order = "EGPCS"
关于该指令的手册可能会帮助您更多:
variables_order (引用):
Sets the order of the EGPCS (Environment,Get,Post,and Server) variable parsing. For example, if variables_order is set to “SP” then PHP will create the superglobals $_SERVER and $_POST ,but not create $_ENV ,$_GET ,and $_COOKIE . Setting to “” means no superglobals will be set.
另请注意(再次引用):
The content and order of $_REQUEST is also affected by this directive.
我想这个选项更重要的是,当register_globals仍然被使用时,同样的页面状态(引用):
If the deprecated register_globals directive is on (removed as of PHP 6.0.0),then variables_order also configures the order the ENV,GET, POST,COOKIE and SERVER variables are populated in global scope. So for example if variables_order is set to “EGPCS”,register_globals is enabled, and both $_GET['action'] and $_POST['action'] are set,then $action will contain the value of $_POST['action'] as P comes after G in our example directive value.
我看不到我可以添加的东西做了这个帮助?或者是这样的事情会导致你出现问题?
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|