Online demonstration address:
gb2312 version http://tools.jb51.net/tools/base64_decode-gb2312.php
utf8 version http://tools.jb51.net/tools/base64_decode-utf8.php
Copy code The code is as follows:
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;
}
?>
< ;html xmlns="http://www.w3.org/1999/xhtml">
Base64 online encoding and decoding gb2312
< ;td height="20" bgcolor="#CCCCCC" align =right style="padding-right:5px;">
|
|
td>
|
http://www.bkjia.com/PHPjc/322869.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322869.htmlTechArticleOnline demo address: gb2312 version http://tools.jb51.net/tools/base64_decode-gb2312.php utf8 Version http://tools.jb51.net/tools/base64_decode-utf8.php Copy the code as follows: ?php...