Base64 online encoding and decoding for code demonstration and download. Online demo address: gb2312 version tools. jb51.nettoolsbase64 _ decode-gb2312.phputf8 version tools. jb51.nettoolsbase64 _ decode-utf8.php copy code is as follows :? Php online demo address:
Gb2312 version http://tools.jb51.net/tools/base64_decode-gb2312.php
Utf8 edition http://tools.jb51.net/tools/base64_decode-utf8.php
The code is as follows:
Header ('content-Type: text/html; charset = gb2312 ');
$ Txt1 = stripslashes (trim (@ $ _ POST ['text1']);
$ Button = @ $ _ POST ['click'];
$ Down = @ trim ($ _ GET ['low']);
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 online encoding and decoding gb2312
Gb2312 version http://tools.jb51.net/tools/base64_decode-gb2312.php utf8 version http://tools.jb51.net/tools/base64_decode-utf8.php code is as follows :? Php...