faqts : Computers : Internet : Web : HTML

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 20 people (15%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How to force the browser to open the link (to a doc or excel file) with the external application

Jul 1st, 2008 04:31
Khurram Ijaz, Sridhar Bandari, http://www.renai-soft.com


You need to send a Content-type header from your script. Or if it a
static file you need to configure mime-types in the server. e.g.
in php you can use the following for excel files
header("Content-type: application/vnd.ms-excel");