“EGPCS”在PHP中是什么意思?

前端之家收集整理的这篇文章主要介绍了“EGPCS”在PHP中是什么意思?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在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.

我看不到我可以添加的东西做了这个帮助?或者是这样的事情会导致你出现问题?

原文链接:https://www.f2er.com/php/131686.html

猜你在找的PHP相关文章