Page 1 of 1

How do I open a PDF document using php script

Posted: Tue Mar 23, 2004 3:58 pm
by daniel02
I currently have a hyperlink on my website that links to a PDF document. However, when you click on a hyperlink it actually creates a copy of the file and displays it. I want to be able to open the actual file itself, not a copy of it. Is this possible using PHP? Thanks!

:?:

Posted: Tue Mar 23, 2004 3:59 pm
by magicrobotmonkey
whats the difference?

Posted: Tue Mar 23, 2004 4:01 pm
by daniel02
The reasons are more complicated than I can really describe in typing. The bottom line is that I need to be able to do it and was just wondering if it is possible.

Posted: Tue Mar 23, 2004 4:03 pm
by magicrobotmonkey
whats the difference between "open" ing it and "Display" ing it? I don't really understand what you want to do

Posted: Tue Mar 23, 2004 4:05 pm
by daniel02
Let me rephrase...
I currently have a hyperlink on my website that links to a PDF document. However, when you click on a hyperlink it actually creates a copy of the file and opens it. I want to be able to open the actual file itself, not a copy of it. Is this possible using PHP?

In other words, I want to open the pdf file that is on the server. A hyperlink opens a copy of the file and not the file itself. Does that clear it up at all? Thanks.

Posted: Tue Mar 23, 2004 4:06 pm
by magicrobotmonkey
Are you trying to edit it?

Posted: Tue Mar 23, 2004 4:09 pm
by daniel02
Really my question is simply this...Can you open a pdf file using PHP? I want to use PHP to open the file using Acrobat Reader without using a hyperlink.

Posted: Tue Mar 23, 2004 4:12 pm
by magicrobotmonkey
You want to do it automatically? I think header() might work look it up

Posted: Tue Mar 23, 2004 4:21 pm
by daniel02
You know what, that did not seem to be the solution, but I just recognized a flaw in my plan. What I'm wanting to do is not going to work for what I need. I might create a new post if I can figure out how to word my problem. Thanks anyways...