在线演示地址:
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;
}
?>