title: How to check server hard disk type via PHP
body: <p>I was looking for a way to check out the server hard disk type via PHP. But even after doing lot of searches I didn't get any clue about how to find it.</p>
  
  <p>Actually what I want to do is to <code>echo</code> if the server hard disk is a mechanical hard disk or pure SSD.</p>
  
  <p>Some hosting company uses mechanical hard drive for actual file server &amp; database then use ssd cache layer on top of that. In this case I would like to show the server hard disk type as mechanical hard drive, as I don't wanna consider the caching layers.</p>
  
  <p>Anyone got any idea about how to achieve it?</p>