Is the php 5.3 function: "finfo_file" the best way to check if a uploaded pdf file is really a pdf file? (http://php.net/manual/en/function.finfo-file.php
If yes, how should i use it for checking if a file is a pdf or docx file? I haven't used it before and learn best by seeing examples.
If no, what other method should i use?
Thanks a lot