RE: [PHP-DB] How to open PDF File on Server on Local Client

2003-10-14 Thread dpgirago
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 :

 
window.open('path_to_PDF_file_on_server');";

?>

Then echo out the variable within the body of the HTML document :



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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, October 14, 2003 11:31 AM
>> To: [EMAIL PROTECTED]
>> 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

RE: [PHP-DB] How to open PDF File on Server on Local Client

2003-10-14 Thread Hutchins, Richard
Yes, you've got it so far. To open another browser window automatically, you
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 11:31 AM
> To: [EMAIL PROTECTED]
> 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
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] How to open PDF File on Server on Local Client

2003-10-14 Thread dpgirago
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

RE: [PHP-DB] How to open PDF File on Server on Local Client

2003-10-14 Thread Hutchins, Richard
You want to know how to open a PDF that resides on the server in a client
browser, right?

You should be able to do that with a simple Click Here link. You can change the target to open a new
window or replace the current window or whatever suits your needs.

It's actually a function of HTTP rather than PHP.

HTH.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 11:17 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] How to open PDF File on Server on Local Client
> 
> 
> Good Day All,
> 
> I have an intranet GUI that allows users to select, insert, 
> and update 
> data in a db.  When data is entered into one of the screens, 
> a C program 
> is called which does some calculations and then creates a PDF 
> file on the 
> server. I want the user to then see the PDF file opened on 
> their local 
> computer (or at least be able to click a link or a button to 
> view it). The 
> local machines will use some PDF viewer to open the file 
> (Acrobat or Yap, 
> I think). My question is, how do I get PHP to push the file 
> data from the 
> server to the client, so that the user can then open the PDF 
> locally. I'd 
> like the GUI to remain open so that once the PDF is viewed, 
> printed, and 
> closed, the user is back to the GUI.  I think I'm needing a 
> PHP Manual 
> reference to some group of functions. Suggestions greatly appreciated.
> 
> Thanks,
> 
> David
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php