If a download does not open up in its appropriate application, then the problem is probably that the file is
being served with Content-type of
application/octet-stream
The way to check this is to search the web for "check html headers"
For example, http://www.icyphy.org/conferences/12/kickoff/iCyPhyKickoffAgenda2012.doc was being downloaded but the option of opening with Word was not offered.
http://web-sniffer.net/ showed that the content type was
application/octet-stream
.
It turns out that the problem was that icyphy/get.php was forcing non-text/html files to be octet-stream.
The fix was to create a common function in util.inc.php that handles the passthrough: util_html_passthrough()