Reply to Re: problem displaying pdfs from mysql

Your name:

Reply:


Posted by Chuck Anderson on 05/07/06 23:54

Rik wrote:

>monomaniac21 wrote:
>
>
>>header("Content-type: application/pdf");
>>
>>
>
>add:
>header('Content-Disposition: attachment; filename="somename.pdf"');
>
>should work, BTW directy from
>http://nl3.php.net/manual/en/function.header.php
>
>Grtz,
>
>
And I've found that you need to use:
header('Content-Disposition: inline; filename="somename.pdf"');
.... to display it in the browser

To create a download, save as dialog use:
header('Content-Disposition: attachment; filename="somename.pdf"');

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
The world is my country,
Science, my religion
*****************************

[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

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