Finding file type in PHP
<p>Is there any way to find the exact file type in php <strong>without looking for the letters after the dot(.)</strong> ?. Because in that case even if you rename a exe file as png, it will be considered as a png only which is malicious. And some PHP functions like <code>pathinfo()</code> also returns the value after dot only which is not reliable. Any suggestion or idea on this would be greatly appreciated.</p>
