http://php.net/readfile
http://php.net/header
You'll want to send Content-type: application/x-octet-stream if you want to
force download, or, errr, whatever a PDF is if you want them to just view
it.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: George Pitcher <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Friday, September 07, 2001 1:04 AM
Subject: Delivering an authenticated pdf


> Hi all,
>
> I want to be able to, after authentication, read a pdf into a string and
> then write it out to the client through the browser.
>
> I can't do all of the procedure in PHP as it's an add on to a
> Lasso/Filemaker site. I can handle the transfer between the two processes,
I
> just need to do the writing out to the client.
>
> Has anyone done this sort of thing before? (Not the lasso/php stuff but
pdf
> delivery.)
>
> The reasoning is that the user should not be able to get to the pdf unless
> they have been authenticated (in Lasso).
>
> Any suggestions?
>
>
> Regards
>
> George Pitcher
>
> Technical Manager
> HERON Project
> Napier University
> Edinburgh EH10 5DT
>
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
> Work: www.heron.ac.uk
> Play  : www.pingu.napier.ac.uk
>
> ================================================
>    programmer -  A device for transmuting caffeine into code.
> ================================================
>
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to