You are here: Re: Avoid <a href... « PHP Programming Language « IT news, forums, messages
Re: Avoid <a href...

Posted by Rik Wasmus on 08/29/07 09:41

On Wed, 29 Aug 2007 09:17:41 +0200, salonowiec
<debrza_removethis@poczta.onet.pl> wrote:

> Can anypody give a hint: on my page there is <a href and it links
> to some file, e.g. alpha.pdf; how to modify the page so that it opens
> the pdf file on start, no link?...

If you want to display a (new) page AND prompt the user to download the
pdf this can only be done using a meta-trick or javascript, both have
nothing to do with php, so if you want to go that route ask in alt.html or
comp.lang.javascript respectively.

That said, serving a pdf with php is one of the examples in the header()
function page in the manual: <http://www.php.net/header>

--
Rik Wasmus

My new ISP's newsserver sucks. Anyone recommend a good one? Paying for
quality is certainly an option.

 

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

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