Bradmont5
03-22-2002, 05:24 AM
I've got a PHP assignment where we have to allow downloading of an arbitrary file from the server, and I can't for the life of me figure out how to determine the appropriate Content-type header for a given file. I really don't want to have to check the file type manually, so can anyone enlighten me about any php library that might do this for me?