P
P
Pavel Matveev2019-12-27 13:18:12
PHP
Pavel Matveev, 2019-12-27 13:18:12

How to send a file to the server and receive it by the server?

I have a tutorial site that I'm experimenting with. It is located on a free hosting, ie. The server is not local, but remote.
The task is as follows:
You need to send a file to the server using Qt and C ++, and then accept this file on the server using PHP.
I don't even know how to do it -_-
I doubt that someone can give a specific example of sending and receiving a file (although he really wants to XD ), so just ask, indicate in which direction to dig. I more or less understand how to send, but how to receive? In PHP, a full kettle (((

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail, 2019-12-27
@axe_lankaster13

provided that before accepting everything that is required for processing php is configured and if the question is specifically in the code, then I send: $_FILES
i.e. you have a request with a file coming to php, the files in the request are in the $_FILES variable, you check for emptiness, and then you do what you need, you can google "functions for working with files in php"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question