Reply to Re: Link directly to MS Word document

Your name:

Reply:


Posted by Dan on 02/05/06 01:27

Jim Michaels wrote:
> 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

That still won't *force* anything, only suggest it.

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

If you're outputting a PDF, then it wouldn't make very much sense to
send the content-type header for MS Word or Excel, would it?

> "W. de Jonge" <w.de.jonge@hotmail.com> wrote in message
> news:4832a$42fdf95a$d47fab21$18030@cache30.multikabel.net...

Don't top-post.

--
Dan

[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

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