Rasmus,

Thanks for the suggestion but it didn't change anything.

George
----- Original Message -----
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "George Pitcher" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, October 19, 2001 10:54 AM
Subject: Re: [PHP] Delivering NAMED pdf files


> The obvious hack would be to simply make the link:
>
>   http://your.domain.com/script.php/filename_you_want.pdf
>
> -Rasmus
>
> On Fri, 19 Oct 2001, George Pitcher wrote:
>
> > Hi all,
> >
> > I am delivering my PDF files from a non-internet directory. The file
gets
> > delivered but the filename is always changed to the name of the php
script.
> >
> > Can anyone tell me how to get the file delivered so that the name stays
as
> > it was on the server?
> >
> > My PHP code. This is all the php code I use in my site (so far).
> > ==========
> > <?php
> > $fp1 = "D:\\Pdf\\" . $fp;
> > $len = filesize($fp1);
> > header("Content-type: application/pdf");
> > header("Content-Disposition: inline; filename=$fp1");
> > header("Content-Length: $len");
> > readfile($fp1);
> > ?>
> > =============
> >
> > Regards
> >
> > George Pitcher, Edinburgh
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> >


_________________________________________________________
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