magic_quotes_gpc=on后上传文件名出错了= =求解

WBOY
Release: 2016-06-23 14:04:23
Original
943 people have browsed it

之前都是替换单引号为俩。现在为了方便想直接打开magic_quotes_gpc。打开后出现问题了。上传的文件名首字母被吞掉了
vardump看到文件名出问题,其他都正常
Dmytro Tolkunov - Photo.jpg变成mytro Tolkunov - Photo.jpg了。。不知道是为什么


回复讨论(解决方案)

我更相信是你代码的问题,你可以 var_dump($_POST, $_FILES); 一看究竟

php5.4 已经放弃了 magic_quotes_gpc 开关
php5.3 也是关闭的

如果你非要自作主张的打开,那么后果当然是“自负”了

我更相信是你代码的问题,你可以 var_dump($_POST, $_FILES); 一看究竟

我还是乖乖的用俩引号或者real_escape吧。。木有发现什么问题

我更相信是你代码的问题,你可以 var_dump($_POST, $_FILES); 一看究竟

知道了。。要是之前升级PHP就没这么多麻烦鸟

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