title: How to prevent a specific directory from running Php, Html, and Javascript languages?
body: <p>Let's say i have an image uploader script, i want to prevent the upload directory from executing Php or even html by only showing it as plain text, i've seen this trick in many websites but i don't know how they do it.</p>
  
  <p>Briefly, if i upload <code>evil.php</code> to that directory, and i try to access it i will only see a plain text source , No html or php is executed. ( but i still want the images to appear normally ofcourse)</p>
  
  <p>I know i can do like that by <code>header("content-type:text/plain");</code> but that's will not be helpful, because what i want, is to set the <code>content-type:text/plain</code> automatically by the server for every thing outputed from the upload directory except images.</p>
  
  <p>Note: i'm running php 5.3.2/Cent OS and the latest cPanel.</p>
  
  <p>Thanks</p>