dongshipang8094 2011-04-23 19:01
浏览 682
已采纳

base64_encode和解码转义字符问题

Hi I've made a paste bin site to share code with a school work group, the problem that I have is when I save code in the db I use base64_encode(code), when I try to show with base64_decode(code) it shows with escaped chars like:

#!/bin/bash

printf \"thi is a test\"\


exit 0

How can I show it, with out escaped chars?

Thanks, Manolo

  • 写回答

1条回答 默认 最新

  • dongpigui8898 2011-04-24 02:07
    关注

    It looks like your web hosting provider has the "magic quotes" mis-feature enabled. Magic quotes is the product of a bygone era of PHP and should no longer be used.

    You should probably disable them. In particular, you're suffering from magic_quotes_runtime, which can be disabled on a script-by-script basis rather than needing an .htaccess or php.ini change.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大