Uploading of fake images security concerns/prevention
<p>I am building a PHP web app and it includes image uploading. I've read about preventing the uploads of fake images. But what are fake images and how can they be used to attack a server?</p>

<p>Is it sufficient using the PHP function <code>getimagesize()</code> along with checking the file extension to eliminate all possible attacks through images?</p>