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 -

java - More than one row with the given identifier was found: 1, for class: com.model.Diagnosis -