title: How to prevent uploaded file from being executed?
body: <p>How can i prevent uploaded file from being executed?
  For example, someone could upload php file and use it to hack site, i want to prevent it.</p>
  
  <p>Best that way that i know is using directory permissions, and set it to 666?</p>
  
  <p>Is there some htaccess magic that i can do?</p>