Base64 Online encoding and decoding implementation code demo and download _php tutorial

Source: Internet
Author: User
Online 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 CodeThe code is as follows:
Header (' content-type:text/html; charset=gb2312 ');
$txt 1 = 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
}
?>




<title>Base64 online encoding and decoding gb2312</title>















http://www.bkjia.com/PHPjc/322869.html www.bkjia.com true http://www.bkjia.com/PHPjc/322869.html techarticle Online 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 code code as follows: Php ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.