Answer the question
In order to leave comments, you need to log in
How to update data?
I have Api of one site, from it I extract (using php) some data that is updated for example every 3 seconds, so that they are updated on my site, I need to refresh the page, but I need this to happen without reloading.
This is the crux of my question. Thanks in advance.
Answer the question
In order to leave comments, you need to log in
As for php itself, if you need to save data somewhere, then you need to use cron or a task scheduler (I won’t give examples, since I don’t write in PHP anymore).
And if purely for display, use looped ajax requests (as an option - setInterval in jquery)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question