关于get获取数据

WBOY
Release: 2016-06-23 13:56:32
Original
1002 people have browsed it

网址为1.php?a=x


网页里面直接
echo $a;

什么时候可以输出x什么时候输出空啊

刚刚测试的, 本机上面直接输出x,而放到服务器上面就是空,不知道神什么规律


回复讨论(解决方案)

php有个配置项register_globals,让$a接收到$_GET['a']的值...因为漏洞太大很早就默认关闭了

php有个配置项register_globals,让$a接收到$_GET['a']的值...因为漏洞太大很早就默认关闭了



Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File    C:\wamp\Apache2\bin\php.ini
为什么我改了这两个php.ini然后把on改为off还是可以直接读取啊。。。话说这两个有区别吗

php有个配置项register_globals,让$a接收到$_GET['a']的值...因为漏洞太大很早就默认关闭了




学习啦,没有重启阿帕奇~
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template