关于magic_quotes_gpc设为ON,该怎么解决

WBOY
Release: 2016-06-13 13:01:38
Original
822 people have browsed it

关于magic_quotes_gpc设为ON
magic_quotes_gpc设为ON时我用的kindeditor后台文本编辑器保存时会乱码,不知道有没有人遇到过,服务器我又没权限去设为off,高手赐教
------解决方案--------------------
.htaccess里设为off试试
------解决方案--------------------
magic_quotes_gpc = on
就是 php 对传入数据自动执行一次 addslashes 函数
你可以再执行一次 stripslashes 去掉转义

但转义与乱码没有关系,你应从其他方向查找问题
------解决方案--------------------
本地会不会出现这种情况? 把你的乱码贴出来看看。
------解决方案--------------------
与魔术引用没用关系
你可以进数据库看数据库里面存是不是乱码,找到中间的地方
然手就确定好了是存的问题还是取的问题
------解决方案--------------------
也许是服务器编码跟本地不同吧。。
------解决方案--------------------
set_magic_quotes_runtime(0)

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!