当前位置:网站首页>Register in PHP_ Globals parameter settings
Register in PHP_ Globals parameter settings
2022-07-03 16:20:00 【Brother Xing plays with the clouds】
register_globals yes php.ini A configuration in , This configuration affects php How to receive passed parameters .
1、 When register_globals=Off When , The next program should use $_GET['user_name'] and $_GET['user_pass'] To accept the value passed in .( notes : When <form> Of method The attribute is post You should use $_POST['user_name'] and $_POST['user_pass'])
2、 When register_globals=On When , The next program can be used directly $user_name and $user_pass To accept values .
seeing the name of a thing one thinks of its function ,register_globals To register as a global variable , So when On When , The values passed in will be directly registered as global variables and used directly , and Off When , We need to go into a specific array to get it .
register_globals= Off The situation of not only affects how to get from <form>、url Data passed in , It also affects session、cookie, Corresponding , obtain session、cookie The way to do it should be :$_SESSION[]、$_COOKIE. At the same time session There are also some changes in the processing of , Therefore, it is generally set to Off.
边栏推荐
- LeetCode1491. Average value of wages after removing the minimum wage and the maximum wage
- 【Proteus仿真】8×8LED点阵屏仿电梯数字滚动显示
- 嵌入式开发:避免开源软件的7个理由
- nifi从入门到实战(保姆级教程)——flow
- Slam learning notes - build a complete gazebo multi machine simulation slam from scratch (4)
- ThreeJS 第二篇:顶点概念、几何体结构
- App mobile terminal test [3] ADB command
- Nine ways to define methods in scala- Nine ways to define a method in Scala?
- Is it safe to open a stock account by mobile registration? Does it need money to open an account
- "Everyday Mathematics" serial 56: February 25
猜你喜欢

Cocos Creator 2. X automatic packaging (build + compile)

Jmeter线程组功能介绍
![SDNU_ ACM_ ICPC_ 2022_ Winter_ Practice_ 4th [individual]](/img/3b/7523eca5bbcdbba29d9b7f6e4791a5.jpg)
SDNU_ ACM_ ICPC_ 2022_ Winter_ Practice_ 4th [individual]

Q2 encryption market investment and financing report in 2022: gamefi becomes an investment keyword
![[system safety] 43 PowerShell malicious code detection series (5) automatic extraction of ten thousand words from abstract syntax tree](/img/cd/00954b9c592c253d42e6a3b8298999.jpg)
[system safety] 43 PowerShell malicious code detection series (5) automatic extraction of ten thousand words from abstract syntax tree

Mixlab编辑团队招募队友啦~~

Project -- high concurrency memory pool
![[proteus simulation] 74hc595+74ls154 drive display 16x16 dot matrix](/img/d6/3c21c25f1c750f17aeb871124e80f4.png)
[proteus simulation] 74hc595+74ls154 drive display 16x16 dot matrix

Deep understanding of grouping sets statements in SQL

Explore Netease's large-scale automated testing solutions see here see here
随机推荐
Why does the std:: string operation perform poorly- Why do std::string operations perform poorly?
The mixlab editing team is recruiting teammates~~
[combinatorics] summary of combinatorial identities (eleven combinatorial identities | proof methods of combinatorial identities | summation methods)*
Caching mechanism of Hibernate / session level caching mechanism
深入理解 SQL 中的 Grouping Sets 语句
【LeetCode】94. Middle order traversal of binary tree
1287. Elements that appear more than 25% in an ordered array
nifi从入门到实战(保姆级教程)——flow
[redis foundation] understand redis master-slave architecture, sentinel mode and cluster together (Demo detailed explanation)
Leetcode binary search tree
Thinking about telecommuting under the background of normalization of epidemic | community essay solicitation
Slam learning notes - build a complete gazebo multi machine simulation slam from scratch (III)
Slam learning notes - build a complete gazebo multi machine simulation slam from scratch (I)
Project -- high concurrency memory pool
Redis installation under windows and Linux systems
"Remake Apple product UI with Android" (2) -- silky Appstore card transition animation
[combinatorics] combinatorial identity (sum of variable upper terms 1 combinatorial identity | summary of three combinatorial identity proof methods | proof of sum of variable upper terms 1 combinator
Mongodb installation and basic operation
用通达信炒股开户安全吗?
PHP中register_globals参数设置