$HTTP_POST_FILES有关问题请问

WBOY
Release: 2016-06-13 13:26:52
Original
915 people have browsed it

$HTTP_POST_FILES问题请教
碰到一个奇怪的问题,如下:WINDOWS系统

使用套装工具WAMP,无法使用$HTTP_POST_FILES上传文件,用$_FILES可以。看了PHP的版本是5.2.6

但在我另外一台手工配置的WEB服务器下,自己配置PHP,APACHE,MYSQL,PHP的版本是5.2.8,却可以使用$HTTP_POST_FILES。

这是为什么???

WAMP套装工具有哪里可以限制使用这个全局变量么?

------解决方案--------------------
我的php5.4 linux下也是不行的,抱歉没测试就乱说
找了一下配置列表,没发现和这个相关的配置
------解决方案--------------------
php.ini
register_globals = on
就可以想你这样用
不过这样将带来潜在的安全隐患,所以 php5.4 已经废止了这个开关
自 php4.1.10 起就不建议打开该开关了
------解决方案--------------------
是register_long_arrays


探讨

不对哦,唠叨老大,我刚刚看了下wamp的那个开关是On的。我是怀疑WAMP这个玩意哪里有做了什么设置。
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!