Reply to Re: Link directly to MS Word document

Your name:

Reply:


Posted by Jim Michaels on 02/04/06 01:48

for a file download to be forced, you are going to have to send headers
before the file is sent out. you will need ASP or PHP. taken from
http://www.php.net/manual/en/function.header.php


<?php
// We'll be outputting a PDF
header('Content-type: application/msword'); //or application/vnd.ms-excel

// It will be called downloaded.doc
header('Content-Disposition: attachment; filename="downloaded.doc"');

// The PDF source is in original.doc
readfile('original.doc');
?>

this will allow the file to be opened as an option.


"W. de Jonge" <w.de.jonge@hotmail.com> wrote in message
news:4832a$42fdf95a$d47fab21$18030@cache30.multikabel.net...
> Who can help me? I want to create a link(href) which opens an .doc or an
> .xls directly in MS Word or MS Excell and not in IE so that I don't have
> to save the document first en open it from Explorer.
>
> I asked our webmaster at the office but he didn't know the answer so I
> hope you can help me.
>
> Greetz
>
> Willem
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация