get_magic_quotes_gpc解决办法

WBOY
Release: 2016-06-13 13:47:02
Original
947 people have browsed it

get_magic_quotes_gpc
大虾们,请教个问题哈。

我的php.ini中有关post/get数据中包含引号、反斜线自动转义的设置为

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

,可是我不明白函数get_magic_quotes_gpc()的输出居然为int(1),为啥呢,不应该是int(0)吗?

求解答。

------解决方案--------------------
输出 phpinfo();看看你所看到的php.ini是不是输出的相同路径文件.另外是否修改后有重启apache.

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