title: Get message with PHP from subscribed topics automaticallyfrom cloudmqtt
body: <p>I am implementing mqtt with php on a web application i am currently working on. Basically, i want to publish temperature sensor data from my raspberry pi to cloudmqtt(using the paho client library), this part has been smooth. I intend to use phpmqtt to subscribe to the topic and get messages from cloudmqtt but i just remembered that the php script will never run automatically on its own and thus cannot get the messages instantly unless.</p>
  
  <p>I have tried to use cron jobs to make the script run at intervals so as to get the messages at regular intervals but cron jobs only offer me 30 mins to hours intervals while i need the script to run in intervals of like 5 seconds.</p>
  
  <p>I would like to know if there is a solution or a workaround for this. If not, advise on how i can do things differently will be greatly appreciated</p>