Groups
Groups
Sign in
Groups
Groups
bzfshop-group
Conversations
Labels
About
Send feedback
Help
关于php配置开启magic_quotes导致后台更新模板内容失败的问题。
20 views
程序安装
程序开发
Skip to first unread message
everpointer
unread,
Feb 16, 2014, 9:24:19 PM
2/16/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bzfsho...@googlegroups.com
案例:
我在后台更新“商城主题 - 首页广告 - 区块广告”内容的时候,出现区块广告内容清空的情况。
原因是区块广告的json数据,在传递后,数据里的双引号加上了backslashes,导致php json_decode失败。
这个backslashes,是php magic_quotes加上去的。
虽然,文档里指导大家通过easy php 安装php环境,而且基本上目前大家都不会开magic_quotes,但也不排除例外情况。
所以,可以在文档的搭建环境的内容,加上一些注意事项,比如:关闭magic_quotes。避免大家遇到同类问题,浪费时间。
bzfshop-support
unread,
Feb 22, 2014, 9:31:07 PM
2/22/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bzfsho...@googlegroups.com
多谢提醒
magic_quotes 是 PHP 4 时代大家普遍用的东西,到了 PHP 5 已经极少被使用了,可能一些小的空间商还会开启这个东西吧
Reply all
Reply to author
Forward
0 new messages