RE: [PHP-DB] How to open PDF File on Server on Local Client
| From: | dpgirago at mdanderson dot org | Date: | Tue, 14 Oct 2003 22:13:02 +0000 |
| Subject: | RE: [PHP-DB] How to open PDF File on Server on Local Client | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-31008@lists.php.net to get a copy of this message | ||
Richard and Karen,
Thanks for your help this morning with my PDF question. I created the link
dynamically as you suggested.
In retrospect, I also think that I was seeking a javascript solution,
i.e., now that the PDF file exists on the web server :
<?php
$openPDF = "<SCRIPT>
window.open('path_to_PDF_file_on_server');</SCRIPT>";
?>
Then echo out the variable within the body of the HTML document :
<?php
echo $openPDF;
?>
David
> just use the target="_blank" attribute that I listed in the example in
the
> previous e-mail. That will spawn a new browser window with the PDF file
in
> it and leave the original browser window open.
>
> If you need something more elegant such as a window without the chrome
> (toolbars, address bar, etc.) then you're going to have to use a simple
> JavaScript.
>> -----Original Message-----
>> From: dpgirago@mdanderson.org [mailto:dpgirago@mdanderson.org]
>> Sent: Tuesday, October 14, 2003 11:31 AM
>> To: php-db@lists.php.net
>> Subject: Re: [PHP-DB] How to open PDF File on Server on Local Client
>>
>>> OK. So if I understand corectly, a link with the path to the
>>> file on the
>>> server will work. How do I have a new browser opened
>>> displaying the PDF
>>> more or less automatically, ie, without the user clicking
>>> anything? Is this a Header() function?
>>>
>>> David