$_request, $_get, $_post

Source: Internet
Author: User
This post was last edited by u010250831 on 2013-12-19 21:23:04

Hello everyone! A very simple line of code! The results are very different, I do not know what the reason! Ask everyone to help solve the next!
As follows:
I built a file, cheshi.php.
Enter the following code:
Print_r ($_get);
Print_r ($_post);
Print_r ($_request);
?>
The output is: $_get, $_post is empty, $_request output is as follows:

Array
(
[CNZZDATA4212761] = cnzz_eid=792289677-1386735817-http%3a%2f%2flocalhost&ntime=1386735817&cnzz_a=28 &ltime=1386736989461
[Bdshare_firstime] = 1386988923534
[ECS] = Array
(
[Visit_times] = 8
)

[CNZZDATA1670348] = cnzz_eid=262288638-1386581204-http%3a%2f%2flocalhost&ntime=1387258320&cnzz_a=177 &sin=none&ltime=1387247284046&rtime=6
[CNZZDATA3203633] = cnzz_eid=239809964-1387289862-http%3a%2f%2flocalhost%2f&ntime=1387289862&cnzz_a= 9&sin=none&ltime=1387289857885
[CNZZDATA4844992] = cnzz_eid=880915059-1387289981-http%3a%2f%2flocalhost%2f&ntime=1387289981&cnzz_a= 43&sin=none&ltime=1387290575798
[Syqdugqqzhrefersh_time] = 0
[Dedeuserid] = 1
[DEDEUSERID__CKMD5] = 650e0b627c089b98
[Last_vtime] = 1387416855
[LAST_VTIME__CKMD5] = 303054e738d2f36d
[Last_vid] = admin
[LAST_VID__CKMD5] = 9fa4781db73e162f
[PHPSESSID] = T4sr7oc4v0tfosklcv050riuk3
[Dedelogintime] = 1387456002
[DEDELOGINTIME__CKMD5] = e539663bd26b3136
)

The question is: what does this information represent! Hope to get a detailed answer! Thank you, everyone!
Why would $_request have it?


Reply to discussion (solution)

Online waiting ...!

See for yourself.
http://php.net/manual/zh/reserved.variables.request.php

Don't send those documents, you can't read them!

See for yourself.
http://php.net/manual/zh/reserved.variables.request.php

Don't send those documentation! The thought has the estrangement to also can not understand! A straightforward explanation! The kind of the layman! The main thing is to explain what those outputs are!

Obviously, besides Get,post, there are coockie.
Print_r ($_cookie);
See if it's the same as Print_r ($_request)?

CNZZ Webmaster statistics Baidu share DEDE CMS login information specific meaning will understand English

An array of $_get,$_post and $_cookie is 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 do from left to right, newer
; Values override older values.
Variables_order = "Egpcs"
[/CC]

This egpcs is a description of the priority of getting content with the $_request array, whose letters are represented by the letter: E for $_env,g on behalf of the $_GET,P representative $_post,c on behalf of $_cookie,s on behalf of $_session. The data that appears later overwrites the previously written data, and its default data is written in Egpcs

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.