A
A
Anatoly2017-08-11 10:58:47
PHP
Anatoly, 2017-08-11 10:58:47

How to transfer data from PHP server to devices?

The point is that I want to transfer data from one phone to (let's say) 2 others.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Koryukov, 2017-08-11
@TonyWrong

It really depends on what you want to convey. In php, you can make a server where all three phones send an Http request, and one of them makes a request that puts some data in the database, and the other two read it.
If you want the server to initiate data transfer to other phones, then you need a socket connection. Of course, this can be done in php, but php has no advantages over other languages ​​in this area. There is even a stereotype that sockets in php are worse than in other languages.
In any case, you first need to determine what data you want to transfer and how this transfer will be conceptually carried out.

M
Maksim Fedorov, 2017-08-11
@Maksclub

It’s a little unclear what you need ...
Make a simple REST API on the server - on clients, you can send data to the server and you can receive them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question