I love the script, it is exactly what I needed. I had problems at first because, no matter how I defined the mime type, or the file type, the browser would display the binary string of the file rather than present the download dialog. I finally found a reference in an article elsewhere about this being a common problem using "free hosting" for the domain. currently, while in development, I simply use godaddy's free hosting credit until ready to go live.
I moved the script to a fully hosted domain, and it worked perfectly.
So, this is one issue I have not seen addressed yet, and thought I would share it.
jb