S
S
slbond2018-11-13 18:56:50
PHP
slbond, 2018-11-13 18:56:50

How to pass server-side changing php variable values ​​to a website page without reloading the page?

The server has a pho script that receives the temperature from the sensor.
How can you implement the transfer of value changes to the page of the web interface without reloading the page itself, as well as with minimal consumption of connection traffic, and the maximum speed of change.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Rsa97, 2018-11-13
@Rsa97

A websocket daemon that only sends temperature changes.

O
Ogureccc, 2018-11-13
@Ogureccc

definitely sockets

X
xtress, 2018-11-13
@xtress

Ajax on a timer? Sockets?

6
65536, 2018-11-13
@65536

the easiest way is through https://pusher.com/ in your case, especially since the sender can wait until the event is triggered. for human users would need a queue

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question