douhuike3199 2013-11-04 13:04
浏览 15
已采纳

魔术引号造成问题[重复]

This question already has an answer here:

I have in shared server magic_quotes_gpc is on. I have tried adding the following code to my .htaccess file.

php_flag magic_quotes_gpc Off

When I use the above line in .htaccess, it throws 500 internal server error.

Even I've tried using ini_set too.

The problem is with CKEEditor. It addslashes the double quotes. And the editor is not woeking properly. I have gone through several answers also but not getting the answer properly.

Please guide me.

PHP Version: 5.3.24

</div>
  • 写回答

2条回答 默认 最新

  • doujun7161 2013-11-04 13:14
    关注

    According to the docs, the magic_quotes_gpc directive is PHP_INI_PERDIR so you should be able to change it.

    Whenever you see a "500 Internal Server Error" status code in your live server you should head to the log files and find out the exact reason (rather than guessing). Whatever, I suspect that Apache is complaining that the php_flag directive is unknown. If that's the case, your PHP interpreter is not running as Apache module, thus you cannot use Apache files to change it.

    Since your hosting account seems to be pretty old, you'll probably have a custom php.ini file somewhere in your FTP account.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥30 Unity接入微信SDK 无法开启摄像头
  • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
  • ¥20 cad图纸,chx-3六轴码垛机器人
  • ¥15 移动摄像头专网需要解vlan
  • ¥20 access多表提取相同字段数据并合并
  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源