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

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -