Reply to Re: <font size="-1">

Your name:

Reply:


Posted by Michael Fesser on 06/14/07 00:14

..oO(teser3@hotmail.com)

>I can put out a Word Doc from PHP but if I try and manipulate the font
>size in the PHP part it outputs a blank Word Document.
>
>Here is what I have:
><?php
> $fname="report.doc";
> $handle = fopen( $fname, "rb" );
> $buf = fread( $handle, filesize( $fname ));
> fclose( $handle );

file_get_contents() exists.

> $len = strlen( $buf );
> header( "Pragma: public" );

'Pragma' is a request header, usage in a response is not defined.
Additionally the only defined directive for this header is 'no-cache'.

> header( "Cache-Control: private" );
> header( "Connection: close" );
> header( "Content-Type: application/msword" );
> header( "Content-Length: $len" );
> header( "Content-Disposition: inline; filename=\"$fname\"" );
> print $buf;
>>
><table border="1">
><tr>
>[...]

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.

Micha

[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

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