You are here: Re: Looking for a script to download pdf file from server « PHP Programming Language « IT news, forums, messages
Re: Looking for a script to download pdf file from server

Posted by Christopher Vogt on 11/15/48 11:48

> Good point. I guess it's a matter of personal preference. IMHO I don't think
> that looks very professional on a company site. Sure OK for a personal site to
> download music etc etc but I don't see many company sites doing that. They
> mostly have a "Download here" type of button.

I would say IT IS more professional to give a "right click to
download"-hint as it it showing the user how to do it right. However a
simple link is more convenient and supports unexperienced users. I
implemented that once with fpdf (fpdf.org). Its method Output() has a
parameter that exactly covers the task (more on
http://www.fpdf.org/en/doc/output.htm). I also remember that I read the
implementation and believe to remember that they worked with some dummy
Content-Disposition. You can either do that as well or create a simple
instance of fpdf and look for the header it sends with with one or the
other option. Try telnet or HTTP Live Headers (Firefox Extension) to see
the headers the server sends.

 

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

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