当前位置:网站首页>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.
边栏推荐
- TCP congestion control details | 3 design space
- First knowledge of database
- Pointcut expression
- How to use AAB to APK and APK to AAB of Google play apps on the shelves
- nifi从入门到实战(保姆级教程)——flow
- MongoDB 的安装和基本操作
- MongoDB 的安装和基本操作
- uploads-labs靶场(附源码分析)(更新中)
- 架构实战营 - 第 6 期 毕业总结
- EditText request focus - EditText request focus
猜你喜欢

Jmeter线程组功能介绍

Deep understanding of grouping sets statements in SQL

The difference between calling by value and simulating calling by reference

Break through 1million, sword finger 2million!

Détails du contrôle de la congestion TCP | 3. Espace de conception

QT串口ui设计和解决显示中文乱码

Interviewer: how does the JVM allocate and recycle off heap memory

Embedded development: seven reasons to avoid open source software

Myopia: take off or match glasses? These problems must be understood clearly first

From the 18th line to the first line, the new story of the network security industry
随机推荐
Effect of ARP package on FTP dump under vxworks-6.6 system
Construction practice camp - graduation summary of phase 6
Pychart error updating package list: connect timed out
2022年Q2加密市场投融资报告:GameFi成为投资关键词
Extraction of the same pointcut
Client does not support authentication protocol requested by server; consider upgrading MySQL client
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
【Proteus仿真】8×8LED点阵屏仿电梯数字滚动显示
First knowledge of database
疫情常态化大背景下,关于远程办公的思考|社区征文
LeetCode1491. Average value of wages after removing the minimum wage and the maximum wage
Mongodb installation and basic operation
工资3000,靠“视频剪辑”月入40000:会赚钱的人,从不靠拼命!
Is it safe to open an account with flush?
From the 18th line to the first line, the new story of the network security industry
Mixlab编辑团队招募队友啦~~
App mobile terminal test [3] ADB command
0214-27100 a day with little fluctuation
A Fei's expectation
First!! Is lancet hungry? Official documents