关于$HTTP_POST_VARS 在widowns 2003服务器里有关问题

WBOY
Release: 2016-06-13 10:57:41
Original
780 people have browsed it

关于$HTTP_POST_VARS 在widowns 2003服务器里问题
为什么服务器里 $HTTP_POST_VARS 获取不到值
而本机测试可以

是不是服务器里php.in少开启什么,。




------解决方案--------------------
HTTP_POST_VARS是个早已废弃的变量
用$_POST
------解决方案--------------------

探讨

是不是把HTTP_POST_VARS改成$_POST

------解决方案--------------------
你的php版本是多少?
------解决方案--------------------
HTTP_POST_VARS 是标准 CGI 环境变量簇的成员

使用形如 $HTTP_POST_VARS 需要 register_globals = on
而php建议你 register_globals = off

自 php 4.1.0 开始出现了替代品 $_POST
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!