php代码在线base64解码,Base64在线编码解码实现代码 演示与下载
在線演示地址:
gb2312版本 http://tools.jb51.net/tools/base64_decode-gb2312.php
utf8版本 http://tools.jb51.net/tools/base64_decode-utf8.php
header('Content-Type: text/html; charset=gb2312');
$txt1 = stripslashes(trim( @$_POST['text1']));
$button = @$_POST['button'];
$down = @trim($_GET['down']);
if ($down==1) {
header("Content-type: command");
header("Content-Disposition: attachment; filename=base64_decode.txt");
$contents = file_get_contents(basename($_SERVER['PHP_SELF']));
echo $contents;
exit;
}
?>
Base64在線編碼解碼 gb2312P {
FONT-SIZE: 9pt;
line-height:150%;
width:50%;
BORDER:#DDDDDD 1px solid;
padding:5px 5px 5px 5px;text-align:justify;
}
A {
text-decoration: none;
font-size:9pt;
color:blue
}
A:hover {
COLOR: red;
TEXT-DECORATION: underline
}
h1 {
font-size:12pt;
text-align:center;
margin-top:30px;
font-family: 微軟雅黑, msyh, Tahoma, Helvetica, sans-serif;
}
.bginput, select {
color:#000000;
vertical-align:middle;
padding:2px;
border:1px solid #BAC0C3;
background:#F9FBFD;
}
.button {
vertical-align:middle;
padding:1px 3px 0px 3px;
background:#F3F4F5;
border:1px solid #B7C0C7;
margin:0px;
width:180px;
}
div {
width:100%;
}
Base64在線編碼解碼 gb2312 源碼下載請輸入轉換的地址: 請選擇轉換的方式: <?php if($button=="編碼") echo base64_encode($txt1); if($button=="解碼") echo mb_convert_encoding(base64_decode($txt1),"gb2312","UTF-8"); ?> |
總結
以上是生活随笔為你收集整理的php代码在线base64解码,Base64在线编码解码实现代码 演示与下载的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: vivo X Fold2 折叠屏手机外观
- 下一篇: 杭州公积金贷款额度 杭州公积金的贷款额度