title: Getting system resource usage in PHP
body: <p>I am trying to make an app for my phone that will allow me to manage my server remotely. I would like to be able to have this app display stats about the server such as resource usage + system uptime, however I am having difficulty.</p>
  
  <p>My server is running windows server 2008 R2, and all the answers I have found are for UNIX systems. I have tried that many different solutions that I would be here forever if I were to list them.</p>
  
  <p>My server is running on SoYouStart, so I did think about using their Real-Time-Monitoring API, however I find using their API extremely difficult and I run into issues constantly with it.</p>
  
  <p>I need to get System Uptime and Ram usage percentage into a file (preferably JSON) which my mobile app can then access.</p>
  
  <p>If there is a solution baseon on the OVH/SYS API, I'm happy to use that or a PHP script to update a JSON file.</p>