r/PHPhelp • u/cdnBacon • Oct 26 '26
Hobbyist here, with a question about PHP daemons on a server ....
So my friend and I are patching together an old student weather station and I have been tasked with handling the data. It comes from his teeny-tiny server on the station as frequently as every 2 seconds (clearly way too granular for weather data ...) and I am writing the webpage and data visualization. My vision is to poll his server every X minutes and build a data set from the responses, then manipulate the data to create appropriate reports and visualizations for any users.
I should emphasize ... this is play. Pure hobby work.
Most of the coding described above is I have done before. However, I have not set up a continuous polling script, let alone on a paid server (Bluehost, in this case).
So I am reading about php daemons, which sound like exactly the sort of thing I need, and seem quite simple, frankly ... but most of the examples I find seem to be run on desktops for short periods, rather than on web servers proper for, well, an unlimited time period.
My questions:
- Is this sort of use case appropriate for a php daemon?
- Are there impediments I should be aware of in trying to run this from the commercial server?
- Any pitfalls that I should be looking at?
I know that this is higher level ... I haven't written any code for the daemon yet besides playing around a bit on my localhost. Just making sure I am on the right general track before getting formally started.
Thank you for any insights.