You are here: Re: <font size="-1"> « PHP Programming Language « IT news, forums, messages
Re: <font size="-1">

Posted by Tim Roberts on 06/15/07 06:03

Iván Sánchez Ortega <ivansanchez-alg@rroba-escomposlinux.-.punto.-.org>
wrote:

>Michael Fesser wrote:
>
>>> header( "Content-Type: application/msword" );
>>> header( "Content-Disposition: inline; filename=\"$fname\"" );
>
>> Now I'm confused - do you want to output the .doc document _and_ the
>> following together on the same page? That's not going to work.
>
>No - He's forcing MS Word to open, then feeding HTML to it. He's not feeding
>Word anything else.

Yes, he is. I think you missed the "print $buf;" statement, where he
copies a Word document to stdout.

Note, however, that Internet Explorer does not trust the Content-Type; it
will often examine the first part of the file to determine how to process
it.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

 

Navigation:

[Reply to this 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

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