title: PHP replacement for mime_content_type
body: <p>I am currently auditing the code of my scripts and I have found that mime_content_type is now deprecated, I use this for a file uploading tool and it is imperative that I keep up to date with the latest standards, so I am wondering what the basics of Fileinfo are, and how I can get the mimetype of a given file?</p>
  
  <p>This Mimetype will be required during the upload process, and will then be stored alongside other file details(such as size, extension) into a database, and it will be rejected if the mimetype &amp; extension are differ from what they should be.</p>
  
  <p>Thanks</p>