Php file Upload

Source: Internet
Author: User
Tags php file upload
Php file download code: header (& quot; Content-type: application/exe & quot;); header (& quot; Content-Disposition: inline; filename = vdbupt2. php file download
Php file download code:
Header ("Content-type: application/exe ");
Header ("Content-Disposition: inline; filename=vdbupt2.exe ");
Readfile ("./WebApp/vdbupt2.exe ");
Readfile ("./WebApp/1. SQL ");

Read the values of 1.sqland vdbupt2.exe, merge the values, and download the new vdbupt2.exe data.
Problem: 1. SQL file contains Chinese data, and the downloaded file contains garbled characters, for example: "insert into T_TANKA_33 (Code, Name, Standard, Notes, ViewCode, Unit, ParentCode, PriceCode, PriceType, v47, F33000) values ('Z-01-01 ', 'Juan? Please refer to them for ","-1 ",". why ?); ". Please take a look

------ Solution --------------------
You work in the window system. The Language encoding is gbk.
Your SQL file uses UTF-8 encoding, so after opening it, it is opened with "garbled"

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.