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, still how to link them to implement data transmission php Server-php Server, accept files uploaded by the client, how does the server receive
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 for data transmission?
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.