hazaveh.net
Detect MIME type and buffer it to browser using PHP | Mahdi Hazaveh
The following piece of code handles detection of mime type, file size and existence of the file for you. I always use this piece for buffering files into browser of my users. [crayon-5d5fe575bac378380