Base64 online encoding and decoding implementation code demonstration and download_PHP tutorial

WBOY
Release: 2016-07-21 15:32:12
Original
2022 people have browsed it

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;">





Base64 online encoding and decoding gb2312 Source code download



Please enter the converted address:



Please select conversion The way:












www.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...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template