php - Possible to have a dynamic Content-type in header for downloading files? -


is possible have php detect content-type should prior downloading? i'm new thinking of extracting extension filename , using case statement set content-type.

is there better way?

if interested in downloading , not opening particular application can use application/octet-stream.


Comments

Popular posts from this blog

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -