Securing File Uploads in PHP
File uploads are one of the most dangerous operations in the lifecycle of a web application. Keep them secure — otherwise, you are asking for trouble!
When it comes to the security of my applications, I always try to get paranoid. I try to put myself in the attacker’s shoes and wonder if my code can be used, in any…