Avoid <a href...

Avoid <a href...

am 29.08.2007 09:17:41 von salonowiec

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

Re: Avoid <a href...

am 29.08.2007 11:41:20 von luiheidsgoeroe

On Wed, 29 Aug 2007 09:17:41 +0200, salonowiec
wrote:

> Can anypody give a hint: on my page there is
> 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:

--
Rik Wasmus

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

Re: Avoid <a href...

am 29.08.2007 12:34:48 von Captain Paralytic

On 29 Aug, 08:17, "salonowiec"
wrote:
> Can anypody give a hint: on my page there is
> some file, e.g. alpha.pdf; how to modify the page so that it opens the pdf
> file on start, no link?...

You can't because you cannot guarantee that the user has a program on
their machine with which to open a pdf file.