|
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]
|