Home  >  Article  >  Backend Development  >  关于$HTTP_POST_VARS 在widowns 2003服务器里有关问题

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

WBOY
WBOYOriginal
2016-06-13 10:57:41754browse

关于$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
Statement:
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