Skip to content
Advertisement

Is it possible to refresh a php site when a post request is detected? [closed]

Let say a sensor is sending data to my php-dashboard via post requests. Is it possible to update them live on my page or do I need javascript for that?

Advertisement

Answer

If you want a live link between anyone looking at your dashboard and mutating data in your database or other data source, php alone is most likely not going to work. Have a look into websockets, though php has an implementation I have yet to encounter one that is production ready.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement