title: Best way to get a minecraft servers status - query, stream_socket...?
body: <p>some time ago I used query to check the status of a minecraft server via. php, but I wasn´t so happy with the results. Sometimes it just took more than 10 seconds or didn´t even got the status although the mc server was up and the webserver within the same data center.</p>
  
  <p>Which method do you think would work most stable and with a good performance: query, stream_stocket or something else ?</p>
  
  <p>Should I run the test every 30 seconds via. a cronjob or just cache the results for 30 secs '?</p>