$ _ REQUEST, $ _ GET, and $ _ POST were last edited by u010250831 at 21:23:04 on
Hello everyone! A simple line of code! The results are very different. I don't know why! Please help us solve this problem!
As follows:
I created a file cheshi. php.
Enter the following code:
Print_r ($ _ GET );
Print_r ($ _ POST );
Print_r ($ _ REQUEST );
?>
The output result is: $ _ GET, $ _ POST is empty, and $ _ REQUEST is output as follows:
Array
(
[Cnzzdata4238561] => cnzz_eid = 792289677-1386735817-http % 3A % 2F % 2 Flocalhost & ntime = 1386735817 & cnzz_a = 28 & ltime = 1386736989461
[Bd1__firstime] => 1386988923534
[ECS] => Array
(
[Visit_times] => 8
)
[CNZZDATA1670348] => cnzz_eid = 262288638-1386581204-http % 3A % 2F % 2 Flocalhost & ntime = 1387258320 & cnzz_a = 177 & sin = none & ltime = 1387247284046 & rtime = 6
[CNZZDATA3203633] => cnzz_eid = 239809964-1387289862-http % 3A % 2F % 2 Flocalhost % 2F & ntime = 1387289862 & cnzz_a = 9 & sin = none & ltime = 1387289857885
[CNZZDATA4844992] => cnzz_eid = 880915059-1387289981-http % 3A % 2F % 2 Flocalhost % 2F & ntime = 1387289981 & cnzz_a = 43 & sin = none & ltime = 1387290575798
[SYQDUGqqzHrefersh_time] => 0
[DedeUserID] => 1
[DedeUserID _ ckMd5] => inclue0b627c089b98
[Last_vtime] = & gt; 1387416855
[Last_vtime _ ckMd5] => 303054e738d2f36d
[Last_vid] => admin
[Last_vid _ ckMd5] => 9fa4781db73e162f
[PHPSESSID] => t4sr7oc4v0tfosklcv050riuk3
[DedeLoginTime] = & gt; 1387456002
[DedeLoginTime _ ckMd5] => e539663bd26b3136
)
The question is: what does this information represent! Hope to get a detailed answer! Thank you!
Why does $ _ REQUEST exist?
Reply to discussion (solution)
Waiting online ....!
Let's take a look.
Http://php.net/manual/zh/reserved.variables.request.php
Don't post those instructions!
Let's take a look.
Http://php.net/manual/zh/reserved.variables.request.php
Don't post those instructions! I can't understand my thoughts if I am confused! A straightforward explanation! That's easy to understand! The main reason is to explain what the output is!
Obviously, besides get and post, there are also coockie.
Print_r ($ _ COOKIE );
Check whether it is the same as print_r ($ _ REQUEST?
The CNZZ webmaster collects statistics on the logon information of Baidu shared dede cms.
The $ _ GET, $ _ POST, and $ _ COOKIE arrays are included by default.
[Cc lang = 'ini ']
; 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"
[/Cc]
This EGPCS indicates the priority of the content obtained using the $ _ REQUEST array. The letter meanings of the EGPCS are: e-generation table $ _ ENV, G stands for $ _ GET, P stands for $ _ POST, C indicates $ _ COOKIE, and S indicates $ _ SESSION. The subsequent data will overwrite the previously written data. the default data writing method is EGPCS.