title: Possible to have a dynamic Content-type in header for downloading files?
body: <p>Is it possible to have PHP detect what the Content-type should be prior to downloading?  I'm fairly new to this but I was thinking of extracting the extension from the filename and then using a case statement to set the Content-type.</p>
  
  <p>Is there a better way?</p>