Php acts as a server and accepts files uploaded from the client. how does the server receive the files?

Source: Internet
Author: User
Php acts as a server and accepts files uploaded by the client. how does the server receive files written locally by C ++, then I want to use PHP to write a program on the server to store the file. is it necessary to write a listener on the server, how can I link them to implement data transmission? php is used as a server to receive files uploaded by the client. how can the server receive the files uploaded by the client?
We use a client written locally in C ++, and then we want to use PHP to write a program on the server to store the file. is it necessary to write a listener on the server, how can we link them to implement data transmission on the php server?
------ Solution --------------------
Add the multipart/form-data header in post mode
Php automatically identifies uploaded files

If you use the put method, you need to read the file content from the php: // input resource on the balanced object.

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.