开发者

base64_encode and decode escape char problem

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 wi开发者_JAVA百科th base64_decode(code) it shows with escaped chars like:

#!/bin/bash

printf \"thi is a test\"\\n

exit 0

How can I show it, with out escaped chars?

Thanks, Manolo


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜